Skip to content

Commit

Permalink
hugo.yaml: Limit deployment to manual trigger or pushes to the main b…
Browse files Browse the repository at this point in the history
…ranch

Signed-off-by: Sebastian Pipping <[email protected]>
  • Loading branch information
hartwork committed Nov 18, 2024
1 parent 0c3a130 commit 10b235a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:

# Deployment job
deploy:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit 10b235a

Please sign in to comment.