File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout
13+ uses : actions/checkout@v4
14+ - name : Setup Pages
15+ id : pages
16+ uses : actions/configure-pages@v5
17+ - name : Build site
18+ run : |
19+ ./scripts/build.sh
20+ - name : Upload artifact
21+ uses : actions/upload-pages-artifact@v3
22+ with :
23+ path : ' ./docs/.vitepress/dist'
24+
25+ deploy :
26+ environment :
27+ name : github-pages
28+ url : ${{ steps.deployment.outputs.page_url }}
29+ runs-on : ubuntu-latest
30+ needs : build
31+ permissions :
32+ contents : read
33+ pages : write
34+ id-token : write
35+ steps :
36+ - name : Deploy to GitHub Pages
37+ id : deployment
38+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments