Skip to content

Commit

Permalink
Update the book buiding to separate dev and master
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Finnie committed Aug 5, 2024
1 parent a70fca0 commit 3089346
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,16 @@ jobs:
# deploy book to github-pages
- name: GitHub Pages
uses: peaceiris/[email protected]
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html

# deploy book to github-pages dev
- name: GitHub Pages dev
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/dev'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
destination_dir: dev

0 comments on commit 3089346

Please sign in to comment.