forked from Uniswap/info
-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (37 loc) · 1.03 KB
/
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
38
39
40
name: Deploy Site
on:
push:
branches: [main]
env:
REACT_APP_SENTRY_RELEASE: gh-${{ github.sha }}
REACT_APP_SENTRY_ENVIRONMENT: production
GIT_COMMIT_SHA: ${{ github.sha }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
jobs:
deploy-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
always-auth: true
node-version: '16'
- name: Yarn Cache
uses: actions/cache@v2
with:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: |
.yarn/
node_modules/
restore-keys: |
${{ runner.os }}-modules-
- run: yarn install
- run: yarn build:local
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.DIST_DEPLOY_KEY }}
external_repository: ${{ github.repository }}-dist
publish_branch: master
publish_dir: ./build/