Skip to content

Commit 59798d6

Browse files
Copilotballoob
andauthored
Fix GitHub Pages deployment to only run on push to main, skip PRs (#7)
* Initial plan * Fix GitHub Pages deployment to only run on push to main Co-authored-by: balloob <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: balloob <[email protected]>
1 parent 6abdcbd commit 59798d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353

5454
# Deployment job
5555
deploy:
56+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5657
environment:
5758
name: github-pages
5859
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)