Skip to content

Commit

Permalink
only push to gh-pages when dealing with main
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Jan 3, 2024
1 parent 14731ac commit 86942b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
# Push the book's HTML to github-pages
- name: GitHub Pages action
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 86942b1

Please sign in to comment.