-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
☕ Use pre-build binaries for mdbook and mdbook-alerts
- Loading branch information
1 parent
8ac976c
commit 726772c
Showing
2 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
|
@@ -26,18 +27,24 @@ jobs: | |
target/ | ||
.tools/ | ||
key: ${{ runner.os }}-cargo | ||
|
||
- uses: denoland/[email protected] | ||
with: | ||
deno-version: ${{ env.DENO_VERSION }} | ||
- name: Install mdBook | ||
run: | | ||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh | ||
rustup update | ||
cargo install --force --version ${MDBOOK_VERSION} mdbook | ||
cargo install --force mdbook-alerts | ||
|
||
- name: Install mdbook and cargo-binstall binaries | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: mdbook,cargo-binstall | ||
|
||
- name: Install mdbook extensions | ||
run: cargo binstall -y mdbook-alerts | ||
|
||
- name: Build with mdBook | ||
run: mdbook build | ||
|
||
- name: Format | ||
run: deno fmt --check | ||
|
||
- name: Misspell | ||
uses: reviewdog/[email protected] |