File tree Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Expand file tree Collapse file tree 2 files changed +24
-12
lines changed Original file line number Diff line number Diff line change @@ -32,17 +32,22 @@ jobs:
3232 MDBOOK_VERSION : 0.4.36
3333 steps :
3434 - uses : actions/checkout@v4
35- - name : Install mdBook
36- run : |
37- curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
38- rustup update
39- cargo install --force --version ${MDBOOK_VERSION} mdbook
40- cargo install --force mdbook-alerts
35+
36+ - name : Install mdbook and cargo-binstall binaries
37+ uses : taiki-e/install-action@v2
38+ with :
39+ tool : mdbook,cargo-binstall
40+
41+ - name : Install mdbook extensions
42+ run : cargo binstall -y mdbook-alerts
43+
4144 - name : Setup Pages
4245 id : pages
4346 uses : actions/configure-pages@v4
47+
4448 - name : Build with mdBook
4549 run : mdbook build
50+
4651 - name : Upload artifact
4752 uses : actions/upload-pages-artifact@v3
4853 with :
Original file line number Diff line number Diff line change 1616 runs-on : ubuntu-latest
1717 steps :
1818 - uses : actions/checkout@v4
19+
1920 - uses : actions/cache@v4
2021 with :
2122 path : |
@@ -26,18 +27,24 @@ jobs:
2627 target/
2728 .tools/
2829 key : ${{ runner.os }}-cargo
30+
2931 -
uses :
denoland/[email protected] 3032 with :
3133 deno-version : ${{ env.DENO_VERSION }}
32- - name : Install mdBook
33- run : |
34- curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
35- rustup update
36- cargo install --force --version ${MDBOOK_VERSION} mdbook
37- cargo install --force mdbook-alerts
34+
35+ - name : Install mdbook and cargo-binstall binaries
36+ uses : taiki-e/install-action@v2
37+ with :
38+ tool : mdbook,cargo-binstall
39+
40+ - name : Install mdbook extensions
41+ run : cargo binstall -y mdbook-alerts
42+
3843 - name : Build with mdBook
3944 run : mdbook build
45+
4046 - name : Format
4147 run : deno fmt --check
48+
4249 - name : Misspell
4350
You can’t perform that action at this time.
0 commit comments