Version v1.11 (#31) #3
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-tutorial | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tutorial: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: DeterminateSystems/flake-checker-action@main | |
- name: Build Tutorial | |
run: | | |
nix develop --command mdbook-admonish install book | |
nix develop --command mdbook-mermaid install book | |
nix develop --command mdbook build book | |
- uses: JamesIves/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: ./book/book | |
clean: true |