Skip to content

Commit

Permalink
Deploy only on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
arunkannawadi authored Nov 30, 2023
1 parent 8bfa970 commit ec28517
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches:
- main
pull_request:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -68,6 +70,7 @@ jobs:

# Deployment job
deploy:
if: ${{ github.event.pull_request.merged }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down

0 comments on commit ec28517

Please sign in to comment.