From 5d25a07eac6c2e71e56e1f74e2874aa4d0211839 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 22 Oct 2022 19:32:35 +0200 Subject: workflows/build: only deploy on pushes to master --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows/build.yml') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c7a3fe6..e045c77 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: branch: gh-pages folder: cv single-commit: true - if: github.ref == 'refs/heads/master' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' - name: Set up ssh-agent uses: webfactory/ssh-agent@v0.5.3 with: @@ -40,3 +40,4 @@ jobs: REMOTE_HOST: '${{ secrets.REMOTE_HOST }}' REMOTE_PORT: '${{ secrets.REMOTE_PORT }}' REMOTE_DIR: '${{ secrets.REMOTE_DIR }}' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' -- cgit v1.2.3