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 Website
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' website/**'
9+ - ' .github/workflows/deploy-website.yml'
10+ workflow_dispatch :
11+
12+ jobs :
13+ deploy :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Install pnpm
19+ uses : pnpm/action-setup@v4
20+ with :
21+ version : 9
22+
23+ - name : Setup Node.js
24+ uses : actions/setup-node@v4
25+ with :
26+ node-version : 20
27+ cache : ' pnpm'
28+
29+ - name : Install dependencies
30+ run : pnpm install --frozen-lockfile
31+
32+ - name : Build Website
33+ env :
34+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
35+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
36+ run : |
37+ npm install -g vercel
38+ cd website && vercel build --token=${{ secrets.VERCEL_TOKEN }}
39+
40+ - name : Deploy to Vercel
41+ env :
42+ VERCEL_ORG_ID : ${{ secrets.VERCEL_ORG_ID }}
43+ VERCEL_PROJECT_ID : ${{ secrets.VERCEL_PROJECT_ID }}
44+ run : |
45+ cd website && vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "github" : {
3- "silent" : true
3+ "silent" : true ,
4+ "enabled" : false
45 }
56}
You can’t perform that action at this time.
0 commit comments