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 site to Pages
2+ on :
3+ # push:
4+ # branches: [master]
5+ workflow_dispatch :
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
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@v6
24+ with :
25+ fetch-depth : 0
26+ - name : Setup Node
27+ uses : actions/setup-node@v6
28+ with :
29+ node-version : 24
30+ cache : npm
31+ cache-dependency-path : docs/package-lock.json
32+ - name : Setup Pages
33+ uses : actions/configure-pages@v4
34+ - name : Install dependencies
35+ working-directory : docs/
36+ run : npm ci
37+ - name : Build with VitePress
38+ working-directory : docs/
39+ run : npm run build
40+ - name : Upload artifact
41+ uses : actions/upload-pages-artifact@v3
42+ with :
43+ path : docs/.vitepress/dist
44+
45+ deploy :
46+ environment :
47+ name : github-pages
48+ url : ${{ steps.deployment.outputs.page_url }}
49+ needs : build
50+ runs-on : ubuntu-latest
51+ name : Deploy
52+ steps :
53+ - name : Deploy to GitHub Pages
54+ id : deployment
55+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments