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 : Deploy VitePress Documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : pages
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v4
24+ with :
25+ fetch-depth : 0
26+
27+ - name : Setup pnpm
28+ uses : pnpm/action-setup@v2
29+ with :
30+ version : 8
31+
32+ - name : Setup Node
33+ uses : actions/setup-node@v4
34+ with :
35+ node-version : 20
36+ cache : pnpm
37+
38+ - name : Setup Pages
39+ uses : actions/configure-pages@v4
40+
41+ - name : Install dependencies
42+ run : pnpm install --frozen-lockfile
43+
44+ - name : Build with VitePress
45+ run : pnpm docs:build
46+
47+ - name : Upload artifact
48+ uses : actions/upload-pages-artifact@v3
49+ with :
50+ path : docs/.vitepress/dist
51+
52+ deploy :
53+ environment :
54+ name : github-pages
55+ url : ${{ steps.deployment.outputs.page_url }}
56+ needs : build
57+ runs-on : ubuntu-latest
58+ name : Deploy
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