From 86942b1975287d3831deb195316dde7c63d71eb9 Mon Sep 17 00:00:00 2001 From: Gabe Fierro Date: Wed, 3 Jan 2024 13:40:19 -0700 Subject: [PATCH] only push to gh-pages when dealing with main --- .github/workflows/book.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 38ed216d..737fc31d 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -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 }}