File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed
Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - ' main'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v3
15+
16+ - uses : pnpm/action-setup@v4
17+ name : Install pnpm
18+ with :
19+ version : 10
20+ run_install : false
21+
22+ - name : Install Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : 20
26+ cache : ' pnpm'
27+
28+ - name : Install dependencies
29+ run : pnpm install
30+
31+ - name : Build
32+ run : pnpm run build
33+
34+ - name : Update pages artifact
35+ uses : actions/upload-pages-artifact@v1
36+ with :
37+ path : build/
38+
39+ deploy :
40+ needs : build
41+ permissions :
42+ pages : write
43+ id-token : write
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ runs-on : ubuntu-latest
48+ steps :
49+ - name : Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments