From 7dea3d03ec621dfe3dee0e956470c925f2dcbd75 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Mon, 6 May 2024 14:06:06 -0400 Subject: [PATCH] ci/docs: install mdbook-mermaid Fixes #513 Signed-off-by: John Eckersberg --- .github/workflows/docs.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 56dd8b85a..868834377 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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: