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- # Sample workflow for building and deploying a mdBook site to GitHub Pages
2- #
3- # To get started with mdBook see: https://rust-lang.github.io/mdBook/index.html
4- #
51name : Deploy mdBook site to Pages
62
73on :
8- # Runs on pushes targeting the default branch
94 push :
105 branches : ["main"]
11-
12- # Allows you to run this workflow manually from the Actions tab
136 workflow_dispatch :
147
15- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
168permissions :
179 contents : read
1810 pages : write
1911 id-token : write
2012
21- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2313concurrency :
2414 group : " pages"
2515 cancel-in-progress : false
2616
2717jobs :
28- # Build job
2918 build :
3019 runs-on : ubuntu-latest
3120 steps :
3221 - uses : actions/checkout@v4
3322 - name : Install mdBook & dependencies
3423 run : |
35- curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
24+ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh -s -- -y # fix: -y goes here
3625 rustup update
3726 cargo install mdbook
3827 cargo install mdbook-callouts
28+ cargo install mdbook-admonish # added
29+ mdbook-admonish install . # copies assets, required at build time
3930 - name : Setup Pages
4031 id : pages
4132 uses : actions/configure-pages@v5
4637 with :
4738 path : ./book
4839
49- # Deployment job
5040 deploy :
5141 environment :
5242 name : github-pages
5646 steps :
5747 - name : Deploy to GitHub Pages
5848 id : deployment
59- uses : actions/deploy-pages@v4
49+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments