Skip to content

Commit e3741d9

Browse files
committed
fix-2
1 parent 89f4a1c commit e3741d9

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/mdbook.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,32 @@
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-
#
51
name: Deploy mdBook site to Pages
62

73
on:
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
168
permissions:
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.
2313
concurrency:
2414
group: "pages"
2515
cancel-in-progress: false
2616

2717
jobs:
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
@@ -46,7 +37,6 @@ jobs:
4637
with:
4738
path: ./book
4839

49-
# Deployment job
5040
deploy:
5141
environment:
5242
name: github-pages
@@ -56,4 +46,4 @@ jobs:
5646
steps:
5747
- name: Deploy to GitHub Pages
5848
id: deployment
59-
uses: actions/deploy-pages@v4
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)