Skip to content

Commit

Permalink
fix(book): remove deprecated mermaid dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Aug 28, 2024
1 parent 464960c commit d44d6f6
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -14,24 +13,19 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "latest"
- name: Setup mdbook-mermaid
uses: magicgh/mdbook-mermaid-action@v1
- name: Install Rust stable toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
version: "latest"
- name: Install mdbook-template
cache-on-failure: true
- name: Setup mdbook
run: |
mkdir mdbook-template
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
echo `pwd`/mdbook-template >> $GITHUB_PATH
cargo install mdbook mdbook-mermaid mdbook-template
- name: Build book
working-directory: ./book
run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d44d6f6

Please sign in to comment.