Merge pull request #308 from giggsey/patch-1 #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy docs | |
on: | |
push: | |
paths: | |
- 'docs/**' | |
branches: | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
pages: | |
name: GitHub Gen Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup mdbook | |
uses: peaceiris/actions-mdbook@v2 | |
with: | |
mdbook-version: '0.4.25' | |
- name: Build the documentation | |
run: | | |
mdbook build | |
# Deploy to the target directory. | |
- name: Deploy to gh pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./book | |
cname: docs.packeton.org |