Skip to content

Commit

Permalink
tweak gh-pages workflow for admonish install
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyDumaine committed Feb 21, 2024
1 parent 46050b6 commit f76a7ba
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f76a7ba

Please sign in to comment.