From 025f036f238f151b04277a4b2ffbd474e4e696a2 Mon Sep 17 00:00:00 2001 From: Ashley Dumaine Date: Wed, 21 Feb 2024 10:15:39 -0500 Subject: [PATCH] tweak gh-pages workflow for admonish install --- .github/workflows/gh-pages.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 8c076907c..7c040c2fa 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -16,17 +16,24 @@ permissions: jobs: generate-docs: runs-on: ubuntu-latest + container: docker.io/node:20-bullseye-slim timeout-minutes: 2 steps: - uses: actions/checkout@v4 - name: Setup mdBook - uses: peaceiris/actions-mdbook@v1 - with: - mdbook-version: '0.4.35' + run: | + apt-get update + apt-get install curl -y + mkdir mdbook + curl -sSL https://github.com/rust-lang/mdbook/releases/download/v0.4.37/mdbook-v0.4.37-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook + curl -sSL https://github.com/tommilligan/mdbook-admonish/releases/download/v1.15.0/mdbook-admonish-v1.15.0-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook + echo `pwd`/mdbook >> $GITHUB_PATH + - name: Build with mdBook + run: | + cd docs + mdbook build - name: Setup Pages uses: actions/configure-pages@v4 - - name: Build with mdBook - run: cd docs && mdbook build - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: