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