Skip to content

Commit

Permalink
ci: ensure build job runs on pushes to master as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Dec 15, 2023
1 parent 2df78d4 commit fb40b75
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
name: Deploy Hugo site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- prod

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down Expand Up @@ -72,6 +68,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/prod'
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit fb40b75

Please sign in to comment.