Skip to content

♻️ Migrate to mdbook #8

♻️ Migrate to mdbook

♻️ Migrate to mdbook #8

Workflow file for this run

name: 'Publish to GitHub Pages'
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: 'latest'
- run: cargo install mdbook mdbook-katex
- run: mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DEPLOY_TOKEN }}