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 : GH Pages
2+ on :
3+ workflow_dispatch :
4+ push :
5+ branches : [main]
6+ paths : ["docs/**"]
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+ concurrency :
12+ group : " pages"
13+ cancel-in-progress : true
14+ jobs :
15+ deploy :
16+ environment :
17+ name : github-pages
18+ url : ${{ steps.deployment.outputs.page_url }}
19+ runs-on : ubuntu-latest
20+ steps :
21+ - uses : actions/checkout@v4
22+ - uses : pnpm/action-setup@v4
23+ with :
24+ version : 10
25+ - name : Build
26+ run : |
27+ pushd docs
28+ pnpm install
29+ pnpm run build
30+ popd
31+ - name : Setup Pages
32+ uses : actions/configure-pages@v5
33+ - name : Upload artifact
34+ uses : actions/upload-pages-artifact@v3
35+ with :
36+ path : " ./docs/dist"
37+ - name : Deploy to GitHub Pages
38+ id : deployment
39+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments