File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : " Deploy"
2-
1+ name : Deploy to Vercel
32on :
43 push :
5- branches :
6- - main
4+ branches : [main]
75
86jobs :
9- vercel :
7+ deploy :
108 runs-on : ubuntu-latest
11- name : " Deploy Automa Website"
12-
139 steps :
1410 - uses : actions/checkout@v2
15- - uses : actions/setup-node@v1
11+
12+ # 使用官方的 Vercel Action 替代 CLI 命令
13+ - name : Deploy to Vercel
14+ uses : amondnet/vercel-action@v20
1615 with :
17- node-version : ' 16'
18- registry-url : https://registry.npmjs.org/
19-
20- - name : " Deploy to Vercel"
21- run : npx vercel --token ${VERCEL_TOKEN} --prod
22- env :
23- VERCEL_TOKEN : ${{ secrets.VERCEL_TOKEN }}
24- VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
25- VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
16+ vercel-token : ${{ secrets.VERCEL_TOKEN }}
17+ vercel-org-id : ${{ secrets.VERCEL_ORG_ID }}
18+ vercel-project-id : ${{ secrets.VERCEL_PROJECT_ID }}
19+ working-directory : ./
You can’t perform that action at this time.
0 commit comments