Skip to content

add mdBook for documentation in /docs, GitHub Actions workflow #1

add mdBook for documentation in /docs, GitHub Actions workflow

add mdBook for documentation in /docs, GitHub Actions workflow #1

Workflow file for this run

name: Publish Docs
on:
push:
paths:
- docs/**
branches: [trunk]
jobs:
build:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.4" mdbook)
- run: mdbook build docs && mdbook test docs
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/book