To unify the deploy process across my organization’s branching structure, I would like a Netlify site to only have the changes published with a new GitHub release. I thought about doing this with the Netlify CLI using GitHub Actions to trigger a deploy on release – however, there is currently no way to only publish sites with a GitHub release, as leaving autopublish on would publish all commits to master, and there does not seem to be any way in the UI to disable automatic builds from master.
Two things would help with this:
- The ability to turn off automatic builds for the production branch, while still leaving autopublishing on
- A way to mark a certain commit/git tag as publishable with the Netlify CLI, so it would automatically publish that revision once the build finishes (or if it has already finished)