File tree Expand file tree Collapse file tree 1 file changed +61
-0
lines changed
Expand file tree Collapse file tree 1 file changed +61
-0
lines changed 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+ - DOCS
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+ concurrency :
19+ group : pages
20+ cancel-in-progress : false
21+
22+ jobs :
23+ build :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout
27+ uses : actions/checkout@v4
28+ with :
29+ fetch-depth : 0 # Needed for lastUpdated in VitePress
30+
31+ - name : Setup Node
32+ uses : actions/setup-node@v4
33+ with :
34+ node-version : 22
35+ cache : npm
36+
37+ - name : Setup Pages
38+ uses : actions/configure-pages@v4
39+
40+ - name : Install dependencies
41+ run : npm ci
42+
43+ - name : Build with VitePress
44+ run : npm run build
45+
46+ - name : Upload artifact
47+ uses : actions/upload-pages-artifact@v3
48+ with :
49+ path : .vitepress/dist
50+
51+ deploy :
52+ environment :
53+ name : github-pages
54+ url : ${{ steps.deployment.outputs.page_url }}
55+ needs : build
56+ runs-on : ubuntu-latest
57+ name : Deploy
58+ steps :
59+ - name : Deploy to GitHub Pages
60+ id : deployment
61+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments