diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 773d3ee..6ec0a2e 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -11,6 +11,9 @@ on: - synchronize branches: - master + push: + branches: + - master # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -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 }}