From 217efe2bb6e1e2b8cb486ae32d7d97d6d130ecfb Mon Sep 17 00:00:00 2001 From: ctmbl Date: Thu, 21 Mar 2024 22:44:51 +0100 Subject: [PATCH] Trigger deployment on manually triggered workflows --- .github/workflows/build_and_deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 1095fed..25ceec3 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -39,10 +39,10 @@ jobs: path: ./build/blog # Deployment job: heavily inspired from https://swharden.com/blog/2022-03-20-github-actions-hugo/ - # /!\ only triggers on push events + # /!\ only triggers on push events and manually triggered deploy: needs: [build] - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }} runs-on: ubuntu-latest steps: - name: 🛠️ Setup build directory