File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed
Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ jobs:
2929 build :
3030 runs-on : ubuntu-latest
3131 env :
32- MDBOOK_VERSION : 0.4.36
32+ MDBOOK_VERSION : 0.5.1
3333 steps :
3434 - uses : actions/checkout@v4
35-
35+
3636 - name : Install Rust
3737 uses : dtolnay/rust-toolchain@stable
38-
38+
3939 - name : Cache cargo registry and index
4040 uses : actions/cache@v4
4141 with :
@@ -46,31 +46,27 @@ jobs:
4646 key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4747 restore-keys : |
4848 ${{ runner.os }}-cargo-
49-
49+
5050 - name : Cache cargo binaries
5151 uses : actions/cache@v4
5252 with :
5353 path : ~/.cargo/bin/
5454 key : ${{ runner.os }}-cargo-bin-mdbook-${{ env.MDBOOK_VERSION }}
5555 restore-keys : |
5656 ${{ runner.os }}-cargo-bin-mdbook-
57-
57+
5858 - name : Install mdBook
5959 run : |
60- if ! command -v mdbook &> /dev/null; then
61- cargo install --version ${MDBOOK_VERSION} mdbook
62- fi
63- if ! command -v mdbook-mermaid &> /dev/null; then
64- cargo install mdbook-mermaid
65- fi
66-
60+ cargo install --version ${MDBOOK_VERSION} mdbook
61+ cargo install mdbook-mermaid
62+
6763 - name : Setup Pages
6864 id : pages
6965 uses : actions/configure-pages@v5
70-
66+
7167 - name : Build with mdBook
7268 run : mdbook build
73-
69+
7470 - name : Upload artifact
7571 uses : actions/upload-pages-artifact@v3
7672 with :
You can’t perform that action at this time.
0 commit comments