From 0dfb6d163b6a6ad3a79d3c2d9240231f199cd95a Mon Sep 17 00:00:00 2001 From: Maarten de Kruijf Date: Thu, 7 Mar 2024 11:26:32 +0100 Subject: [PATCH] Also enable push on master --- .github/workflows/hugo.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index e53577c4..ea6064cf 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -28,7 +28,7 @@ defaults: jobs: # Build job build-documentation: - if: startsWith(github.head_ref, 'feature/docs/**') + if: startsWith(github.head_ref, 'feature/docs/**') || github.ref == 'refs/heads/master' && github.github.event_name == 'push' runs-on: ubuntu-latest env: HUGO_VERSION: 0.123.7 @@ -77,7 +77,7 @@ jobs: # Deployment job deploy-to-pages: - if: startsWith(github.head_ref, 'feature/docs/**') + if: startsWith(github.head_ref, 'feature/docs/**') || github.ref == 'refs/heads/master' && github.github.event_name == 'push' environment: name: development-pages url: ${{ steps.deployment.outputs.page_url }}