File tree Expand file tree Collapse file tree 2 files changed +38
-41
lines changed
Expand file tree Collapse file tree 2 files changed +38
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Vercel PROD Deployment
2+
3+ env :
4+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
5+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
6+
7+ on :
8+ pull_request :
9+ types :
10+ - closed
11+ branches :
12+ - " changeset-release/main"
13+ push :
14+ branches :
15+ - main
16+
17+ jobs :
18+ prod-deploy :
19+ runs-on : ubuntu-latest
20+ if : github.event_name == 'pull_request' && github.event.pull_request.merged == true
21+
22+ steps :
23+ - uses : actions/checkout@v4
24+
25+ - name : Setup
26+ uses : ./.github/setup
27+
28+ - name : Install Vercel CLI
29+ run : pnpm add -g vercel@latest
30+
31+ - name : Pull Vercel Environment Information
32+ run : vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
33+
34+ - name : Build Project Artifacts
35+ run : vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
36+
37+ - name : Deploy Project Artifacts to Vercel
38+ run : vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
You can’t perform that action at this time.
0 commit comments