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
2+
3+ env :
4+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
5+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
6+
7+ on :
8+ push :
9+ branches-ignore :
10+ - main
11+
12+ jobs :
13+ Deploy-Preview :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Install Vercel CLI
18+ run : npm install --global vercel@latest
19+ - name : Pull Vercel Environment Information
20+ run : vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
21+ - name : Build Project Artifacts
22+ run : vercel build --token=${{ secrets.VERCEL_TOKEN }}
23+ - name : Deploy Project Artifacts to Vercel
24+ run : vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Vercel Production Deployment
2+
3+ env :
4+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
5+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
6+
7+ on :
8+ push :
9+ branches :
10+ - main
11+
12+ jobs :
13+ Deploy-Production :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v2
17+ - name : Install Vercel CLI
18+ run : npm install --global vercel@latest
19+ - name : Pull Vercel Environment Information
20+ run : vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
21+ - name : Build Project Artifacts
22+ run : vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
23+ - name : Deploy Project Artifacts to Vercel
24+ run : vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments