Skip to content

Commit

Permalink
I think we got it
Browse files Browse the repository at this point in the history
  • Loading branch information
lrettig committed Jul 29, 2024
1 parent 224bd4b commit b74fa3c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,18 @@ jobs:
uses: actions/configure-pages@v4

- name: Deploy to Staging
if: github.ref_name != 'main' || github.event_name != 'push'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
destination_dir: book/preview/${{ github.event.pull_request.number }}
# publish_branch: gh-pages
destination_dir: preview/${{ github.event.pull_request.number }}

# Note: this step will overwrite the work of the previous step.
# That's okay since they're mutually exclusive.
- name: Deploy
if: github.ref_name == 'main' && github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book
destination_dir: book/
# publish_branch: gh-pages

0 comments on commit b74fa3c

Please sign in to comment.