Skip to content

Use Nix in GitHub CI, codespell, rustfmt, clippy #1

Use Nix in GitHub CI, codespell, rustfmt, clippy

Use Nix in GitHub CI, codespell, rustfmt, clippy #1

Workflow file for this run

name: publish-tutorial

Check failure on line 1 in .github/workflows/book.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/book.yml

Invalid workflow file

`commit` is not a valid event name
on:
commit:
branches:
- "main"
jobs:
tutorial:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Build Tutorial
run: nix develop --command cd book && mdbook build
- uses: JamesIves/github-pages-deploy-action@v4.3.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ./book/book
clean: true