File tree Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Expand file tree Collapse file tree 3 files changed +43
-1
lines changed Original file line number Diff line number Diff line change 1+ name : " Deploy"
2+
3+ on :
4+ release :
5+ types :
6+ - published
7+ push :
8+ branches :
9+ - dev
10+ workflow_dispatch :
11+
12+ jobs :
13+ vercel :
14+ runs-on : ubuntu-latest
15+ name : " Deploy Front-End"
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - uses : actions/setup-node@v1
20+ with :
21+ node-version : " 14"
22+ registry-url : https://registry.npmjs.org/
23+
24+ - name : " Deploy to Vercel"
25+ run : |
26+ prodRun=""
27+ if [[ ${GITHUB_REF} == "refs/heads/main" ]]; then
28+ prodRun="--prod"
29+ fi
30+
31+ npx vercel --token ${VERCEL_TOKEN} $prodRun
32+ env :
33+ VERCEL_TOKEN : ${{ secrets.VERCEL_TOKEN }}
34+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
35+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
Original file line number Diff line number Diff line change 55.env
66package-lock.json
77/client /package-lock.json
8- yarn.lock
8+ yarn.lock
9+ .vercel
Original file line number Diff line number Diff line change 1+ {
2+ "github" : {
3+ "enabled" : false ,
4+ "silent" : true
5+ }
6+ }
You can’t perform that action at this time.
0 commit comments