Skip to content

Commit

Permalink
Trigger deployment on manually triggered workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed Mar 21, 2024
1 parent c5774c1 commit 217efe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 217efe2

Please sign in to comment.