Skip to content

Add CI

Add CI #1

Workflow file for this run

name: Build mdBook
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v22
- name: Build mdBook
run: |
nix shell nixpkgs#mdbook -c \
mdbook build
- name: Publish
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book