diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9b606a4..6320a8d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,4 +60,6 @@ jobs: # Deploy the book's HTML to GitHub Pages - name: Deploy to GitHub Pages id: deployment + # only deploy if merging into main, not if testing a PR + if: github.ref_name == 'main' uses: actions/deploy-pages@v2