aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-10-22 19:32:35 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-10-22 19:32:35 +0200
commit5d25a07eac6c2e71e56e1f74e2874aa4d0211839 (patch)
treeb743355abf21461760ad7427bc744510abe40854 /.github/workflows
parentworkflows/build: upgrade actions (diff)
downloadcv-5d25a07eac6c2e71e56e1f74e2874aa4d0211839.tar.gz
cv-5d25a07eac6c2e71e56e1f74e2874aa4d0211839.zip
workflows/build: only deploy on pushes to master
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml3
1 files changed, 2 insertions, 1 deletions
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'