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 site to Pages
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+ paths-ignore :
8+ - " .devcontainer/**"
9+ - " .github/**"
10+ - " !.github/workflows/**"
11+
12+ # Allows you to run this workflow manually from the Actions tab
13+ workflow_dispatch :
14+
15+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
16+ permissions :
17+ contents : read
18+ pages : write
19+ id-token : write
20+
21+ concurrency :
22+ group : pages
23+ cancel-in-progress : false
24+
25+ jobs :
26+ # Build job
27+ build :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v4
32+ with :
33+ fetch-depth : 0 # Not needed if lastUpdated is not enabled
34+ - name : Setup Node
35+ uses : actions/setup-node@v4
36+ with :
37+ node-version : 22
38+ cache : npm
39+ - name : Setup Pages
40+ uses : actions/configure-pages@v4
41+ - name : Install dependencies
42+ run : npm ci
43+ - name : Build with VitePress
44+ run : npm run docs:build
45+ - name : Upload artifact
46+ uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : docs/.vitepress/dist
49+
50+ # Deployment job
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