mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-04 20:03:39 +00:00
Actions workflow to deploy book to GH Pages
This commit is contained in:
parent
c10e89ab35
commit
cb54205600
1 changed files with 26 additions and 0 deletions
26
.github/workflows/book.yml
vendored
Normal file
26
.github/workflows/book.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
name: halo2 book
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup mdBook
|
||||
uses: peaceiris/actions-mdbook@v1
|
||||
with:
|
||||
mdbook-version: '0.4.4'
|
||||
|
||||
- name: Build halo2 book
|
||||
run: mdbook build book/
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./book/book
|
||||
Loading…
Reference in a new issue