Skip to content

Commit 0db1efc

Browse files
authored
Merge pull request #82 from chainbound/fix/book
fix(book): remove deprecated mermaid dependency
2 parents 464960c + d44d6f6 commit 0db1efc

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/book.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
76
jobs:
87
publish:
98
runs-on: ubuntu-latest
@@ -14,24 +13,19 @@ jobs:
1413
steps:
1514
- name: Checkout sources
1615
uses: actions/checkout@v4
17-
- name: Setup mdbook
18-
uses: peaceiris/actions-mdbook@v1
19-
with:
20-
mdbook-version: "latest"
21-
- name: Setup mdbook-mermaid
22-
uses: magicgh/mdbook-mermaid-action@v1
16+
- name: Install Rust stable toolchain
17+
uses: dtolnay/rust-toolchain@stable
18+
- uses: Swatinem/rust-cache@v2
2319
with:
24-
version: "latest"
25-
- name: Install mdbook-template
20+
cache-on-failure: true
21+
- name: Setup mdbook
2622
run: |
27-
mkdir mdbook-template
28-
curl -sSL https://github.com/sgoudham/mdbook-template/releases/latest/download/mdbook-template-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook-template
29-
echo `pwd`/mdbook-template >> $GITHUB_PATH
23+
cargo install mdbook mdbook-mermaid mdbook-template
3024
- name: Build book
3125
working-directory: ./book
3226
run: mdbook build
3327
- name: Deploy
34-
uses: peaceiris/actions-gh-pages@v3
28+
uses: peaceiris/actions-gh-pages@v4
3529
if: ${{ github.ref == 'refs/heads/main' }}
3630
with:
3731
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)