Skip to content

Workflow file for this run

name: Publish GitHub Pages
on:
push:
branches:
- main
- docs
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: install mdbook
run: curl https://github.com/rust-lang/mdBook/releases/download/v0.4.43/mdbook-v0.4.43-x86_64-unknown-linux-gnu.tar.gz -L | tar -xz
- run: mv docs/theme/{prod-,}toc.js.hbs
- run: ../mdbook build
working-directory: docs
- run: find docs/book -iname '*.html' -exec sed -e 's#\.html##g' -e 's#/index#/#g' -i -- {} ';'
- uses: actions/configure-pages@v3
- uses: actions/upload-pages-artifact@v2
with:
path: "docs/static"
- id: deployment
uses: actions/deploy-pages@v1