File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Docs to GitHub Pages
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ concurrency :
13+ group : " pages"
14+ cancel-in-progress : false
15+
16+ jobs :
17+ build :
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Checkout
21+ uses : actions/checkout@v4
22+ with :
23+ fetch-depth : 0
24+
25+ - name : Setup Node.js
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : ' 20'
29+ cache : ' pnpm'
30+
31+ - name : Setup Pages
32+ uses : actions/configure-pages@v4
33+
34+ - name : Install pnpm
35+ uses : pnpm/action-setup@v4
36+ with :
37+ version : 10.10.0
38+
39+ - name : Install dependencies
40+ run : pnpm install --frozen-lockfile
41+
42+ - name : Build with VitePress
43+ run : pnpm run build
44+ env :
45+ # If you have custom environment variables for VitePress, add them here
46+ NODE_OPTIONS : --max_old_space_size=4096
47+
48+ - name : Upload artifact
49+ uses : actions/upload-pages-artifact@v3
50+ with :
51+ path : docs/.vitepress/dist
52+
53+ deploy :
54+ environment :
55+ name : github-pages
56+ url : ${{ steps.deployment.outputs.page_url }}
57+ runs-on : ubuntu-latest
58+ needs : build
59+ steps :
60+ - name : Deploy to GitHub Pages
61+ id : deployment
62+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments