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 <1444314+balloob@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: balloob <1444314+balloob@users.noreply.github.com>
1 parent 6abdcbd commit 59798d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.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)