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