Skip to content

dev: Book Buildout (#19) #1

dev: Book Buildout (#19)

dev: Book Buildout (#19) #1

Workflow file for this run

name: book
on:
workflow_dispatch:
push:
branches:
- main
paths:
- book/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
book:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build
run: |
cargo install mdbook
mdbook build book
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book