s/getcord/spacedentist (#204) #19
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: Build and deploy spr documentation | |
concurrency: | |
group: gh-pages | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "book.toml" | |
- "docs/**" | |
jobs: | |
mdbook: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Cache mdbook | |
id: cache-mdbook | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/mdbook | |
~/.cargo/bin/mdbook-mermaid | |
key: ${{ runner.os }}-mdbook | |
- name: Install mdBook | |
if: steps.cache-mdbook.outputs.cache-hit != 'true' | |
run: cargo install mdbook mdbook-mermaid | |
- name: Run mdBook | |
run: | | |
mdbook-mermaid install | |
mdbook build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./book | |
publish_branch: gh-pages |