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 : Vercel Preview Deployment
1+ name : Vercel Production Deployment
22env :
33 VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
44 VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
55on :
66 workflow_dispatch :
77 push :
8- branches-ignore :
8+ branches :
99 - main
1010jobs :
11- Deploy-Preview :
11+ Deploy-Production :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
1515 - name : Install Vercel CLI
1616 run : npm install --global vercel@latest
1717 - name : Pull Vercel Environment Information
18- run : vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
18+ run : vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
1919 - name : Build Project Artifacts
20- run : vercel build --token=${{ secrets.VERCEL_TOKEN }}
20+ run : vercel build --prod -- token=${{ secrets.VERCEL_TOKEN }}
2121 - name : Deploy Project Artifacts to Vercel
22- run : vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
22+ run : vercel deploy --prebuilt --prod -- token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments