feat: add support for mermaid #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
id-token: write | |
pages: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: mdbook,mdbook-mermaid | |
- name: Build docs | |
run: mdbook build | |
- name: Setup GitHub Pages | |
if: github.event_name == 'push' | |
uses: actions/configure-pages@v3 | |
- name: Upload Pages artifact | |
if: github.event_name == 'push' | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: book | |
- name: Deploy to GitHub Pages | |
if: github.event_name == 'push' | |
uses: actions/deploy-pages@v2 |