Only deploy to the live site from main #3
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/3/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 onlymainis deployed.🤖 Generated with Claude Code
https://claude.ai/code/session_01A9jzK3yPCTggLRK6W7Vd4b