File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build and Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ permissions :
9+ contents : write
10+ pages : write
11+ id-token : write
12+
13+ concurrency :
14+ group : " pages"
15+ cancel-in-progress : true
16+
17+ jobs :
18+ build :
19+ runs-on : ubuntu-latest
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Setup pnpm
26+ uses : pnpm/action-setup@v4
27+ with :
28+ version : 9
29+ run_install : true
30+
31+ - name : Setup Node.js
32+ uses : actions/setup-node@v4
33+ with :
34+ node-version : 22
35+ cache : " pnpm"
36+
37+ - name : Build project
38+ run : |
39+ pnpm build
40+ touch dist/.nojekyll
41+
42+ - name : Upload build output
43+ uses : actions/upload-pages-artifact@v3
44+ with :
45+ path : dist
46+
47+ deploy :
48+ runs-on : ubuntu-latest
49+ needs : build
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+
54+ steps :
55+ - name : Deploy to GitHub Pages
56+ id : deployment
57+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments