Deploy the example book

main
Jan-Erik Rediger 2022-11-01 18:47:10 +01:00
parent 9c3b12e82b
commit 708336f35e
1 changed files with 31 additions and 0 deletions

31
.github/workflows/mdbook.yml vendored 100644
View File

@ -0,0 +1,31 @@
name: github pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- run: |
cd book
mdbook build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book