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: