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