Only deploy to the live site from main #3

Merged
moof merged 0 commits from refs/pull/3/head into main 2026-10-21 00:13:12 +00:00
moof commented 2026-10-21 00:12:06 +00:00 (Migrated from code.moof.space)

Requested by Moof · project thread

The workflow runs on every push to every branch, and the deploy job had no filter, so pushing any branch could replace the live site with that branch's build.

This adds if: ${{ github.ref == 'refs/heads/main' }} to the deploy job. Every branch still gets built, which works as a check on PRs, but only main is deployed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01A9jzK3yPCTggLRK6W7Vd4b

<!-- claude-projects-attribution --> _Requested by **Moof** · [project thread](https://claude.ai/code/project/chan_01BmPQxcG1UuS21Gfai9Zcdh?thread=cmsg_01BmPQxcG1UuS21Gfai9ZcdhFAocutsYepe1aF1j7CA2oq)_ The workflow runs on every push to every branch, and the deploy job had no filter, so pushing any branch could replace the live site with that branch's build. This adds `if: ${{ github.ref == 'refs/heads/main' }}` to the deploy job. Every branch still gets built, which works as a check on PRs, but only `main` is deployed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01A9jzK3yPCTggLRK6W7Vd4b
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Reference4PT/reference4pt.eu!3
No description provided.