File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy-docs :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ environment :
17+ name : github-pages
18+ url : ${{ steps.deployment.outputs.page_url }}
19+
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 22
30+
31+ - name : Clean npm cache and dependencies
32+ run : |
33+ rm -rf node_modules package-lock.json
34+ npm cache clean --force
35+ working-directory : docs
36+
37+ - name : Install dependencies
38+ run : npm install --force
39+ working-directory : docs
40+
41+ - name : Build documentation
42+ run : npm run build
43+ working-directory : docs
44+ env :
45+ NODE_ENV : production
46+
47+ - name : Setup Pages
48+ uses : actions/configure-pages@v4
49+
50+ - name : Upload artifact
51+ uses : actions/upload-pages-artifact@v3
52+ with :
53+ path : docs/.vitepress/dist
54+
55+ - name : Deploy to GitHub Pages
56+ id : deployment
57+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments