Skip to content

Commit

Permalink
Merge pull request #514 from jeckersb/docs-deploy-fix-mermaid
Browse files Browse the repository at this point in the history
ci/docs: install mdbook-mermaid
  • Loading branch information
cgwalters authored May 6, 2024
2 parents aa0f78a + 7dea3d0 commit 3b3e437
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,18 @@ jobs:
mkdir mdbook
curl -sSL $url | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
- name: Install mdbook-mermaid
run: |
tag=$(curl 'https://api.github.com/repos/badboy/mdbook-mermaid/releases/latest' | jq -r '.tag_name')
url="https://github.com/badboy/mdbook-mermaid/releases/download/${tag}/mdbook-mermaid-${tag}-x86_64-unknown-linux-gnu.tar.gz"
mkdir mdbook-mermaid
curl -sSL $url | tar -xz --directory=./mdbook-mermaid
echo `pwd`/mdbook-mermaid >> $GITHUB_PATH
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with mdBook
run: cd docs && mdbook build
run: cd docs && mdbook-mermaid install && mdbook build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit 3b3e437

Please sign in to comment.