Skip to content

Commit

Permalink
Really try to fix trigger for deployment job
Browse files Browse the repository at this point in the history
The deploy job was running against the feature branch instead of
master when the PR is merged.
  • Loading branch information
rjosephwright committed May 16, 2023
1 parent 9967120 commit 0658806
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- synchronize
branches:
- master
push:
branches:
- master

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -74,7 +77,8 @@ jobs:

# Deployment job
deploy:
if: ${{ github.event.pull_request.merged }}
if: |
github.event.push.ref == 'refs/heads/master'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 0658806

Please sign in to comment.