Branching: do it like this and nobody gets hurt

Branching: do it like this and nobody gets hurt
It's a very simple pattern. Make a Continuous Integration build for the trunk and the release branches. Most projects don't need anything more clever than this.