File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Build & Deploy Site
1+ name : Build & Publish the Site
22
33on :
44 push :
5- branches : [main]
5+ branches : ["main"]
6+
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
69
710permissions :
8- contents : write
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
918
1019jobs :
11- build-and-deploy :
20+ build :
1221 runs-on : ubuntu-latest
22+ env :
23+ MDBOOK_VERSION : 0.4.36
1324 steps :
1425 - name : Checkout Source
1526 uses : actions/checkout@v5
1627
1728 - name : Setup mdBook
1829 uses : peaceiris/actions-mdbook@v2
1930
20- - name : Build Documentation
31+ - name : Setup Pages
32+ uses : actions/configure-pages@v5
33+ id : pages
34+
35+ - name : Build the Site
2136 run : mdbook build
2237
23- - name : Deploy Documentation
24- uses : JamesIves/github -pages-deploy-action@v4
38+ - name : Upload artifact
39+ uses : actions/upload -pages-artifact@v3
2540 with :
26- folder : book
41+ path : ./book
42+
43+ deploy :
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+ runs-on : ubuntu-latest
48+ needs : build
49+ steps :
50+ - name : Deploy to GitHub Pages
51+ uses : actions/deploy-pages@v4
52+ id : deployment
You can’t perform that action at this time.
0 commit comments