File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- paths :
8- - ' docs/**'
9- - ' .github/workflows/deploy-docs.yml'
107 workflow_dispatch :
11-
8+
129permissions :
1310 contents : read
1411 pages : write
1512 id-token : write
16-
13+
1714concurrency :
1815 group : ' pages'
19- cancel-in-progress : true
16+ cancel-in-progress : false
2017
2118jobs :
22- deploy :
23- environment :
24- name : github-pages
25- url : ${{ steps.deployment.outputs.page_url }}
19+ build :
20+ name : Build Documentation
2621 runs-on : ubuntu-latest
2722 steps :
28- - name : Checkout
23+ - name : Checkout Code
2924 uses : actions/checkout@v4
25+ with :
26+ fetch-depth : 0
3027
3128 - name : Setup Node.js
3229 uses : actions/setup-node@v4
3330 with :
3431 node-version : 20
3532 cache : npm
3633
37- - name : Install dependencies
34+ - name : Setup GitHub Pages
35+ uses : actions/configure-pages@v4
36+
37+ - name : Install Dependencies
3838 run : npm ci
3939
4040 - name : Build with VitePress
4141 run : npm run docs:build
4242
43- - name : Upload artifact
43+ - name : Upload Artifact
4444 uses : actions/upload-pages-artifact@v3
4545 with :
4646 path : docs/.vitepress/dist
4747
48+ deploy :
49+ name : Deploy to GitHub Pages
50+ environment :
51+ name : github-pages
52+ url : ${{ steps.deployment.outputs.page_url }}
53+ needs : build
54+ runs-on : ubuntu-latest
55+ steps :
4856 - name : Deploy to GitHub Pages
4957 id : deployment
5058 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments