forked from l2beat/l2beat
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1008 Bytes
/
deploy-site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy website
on:
push:
branches:
- master
# everyday at 2 am
schedule:
- cron: "0 2 * * *"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Backend cache.json
id: cache
uses: actions/cache@v2
with:
path: ./packages/backend/cache/cache.json
# Update the version if cache format changes
key: cache-json-v-2-${{ github.run_id }}
restore-keys: |
cache-json-v-2-
- run: yarn --frozen-lockfile
- run: yarn build
env:
RPC_URL: ${{ secrets.BC_NODE }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
- name: Upload frontend
run: npx netlify-cli deploy -d packages/frontend/build --prod
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}