aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-03-28 18:10:25 +0100
committerEgor Tensin <egor@tensin.name>2026-03-28 18:10:25 +0100
commita422c1b19c82a32dfc7447372905b6771dba40e0 (patch)
tree9d9f2ded3c606667b154e20cab5e2997d6882793 /.github/workflows
parentdependabot: disable Bundler tracking (diff)
downloadblog-a422c1b19c82a32dfc7447372905b6771dba40e0.tar.gz
blog-a422c1b19c82a32dfc7447372905b6771dba40e0.zip
workflows/jekyll: try to green-light builds for PRs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/jekyll.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml
index 81aeee3..0542095 100644
--- a/.github/workflows/jekyll.yml
+++ b/.github/workflows/jekyll.yml
@@ -24,14 +24,15 @@ jobs:
nohup make serve LIVE_RELOAD=0 &
sleep 5 && make wget
- name: Set up ssh-agent
+ if: github.ref == 'refs/heads/gh-pages'
uses: webfactory/ssh-agent@v0.10.0
with:
ssh-private-key: '${{ secrets.REMOTE_SSH_KEY }}'
- name: Deploy
+ if: github.ref == 'refs/heads/gh-pages'
run: make deploy
env:
REMOTE_USER: '${{ secrets.REMOTE_USER }}'
REMOTE_HOST: '${{ secrets.REMOTE_HOST }}'
REMOTE_PORT: '${{ secrets.REMOTE_PORT }}'
REMOTE_DIR: '${{ secrets.REMOTE_DIR }}'
- if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/gh-pages'