From af3673d19c177ddde1eee7db2f2f88a8ebf3e0f2 Mon Sep 17 00:00:00 2001 From: Noam Ross Date: Fri, 4 Mar 2022 09:05:46 -0500 Subject: [PATCH] Deploy only changes to master branch --- .github/workflows/build-site.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-site.yaml b/.github/workflows/build-site.yaml index 67f4481..1fc4afe 100644 --- a/.github/workflows/build-site.yaml +++ b/.github/workflows/build-site.yaml @@ -70,7 +70,7 @@ jobs: - name: 🚀 deploy uses: peaceiris/actions-gh-pages@v3 - if: ${{ !env.ACT }} + if: ${{ !env.ACT && github.ref == 'refs/heads/master'}} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./_site