chore: small changes to mdBook CI

This commit is contained in:
rvcas 2022-10-06 13:49:03 -04:00
parent da3ebed368
commit f218fcfc96
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 4 additions and 5 deletions

View File

@ -1,10 +1,9 @@
name: github pages
name: mdBook
on:
push:
branches:
- main
- book
pull_request:
jobs:
@ -18,13 +17,13 @@ jobs:
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
mdbook-version: "latest"
- run: cd book && mdbook build
- run: mdbook build book
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
publish_dir: ./book/book