Maintainer reference for branching, releasing, hotfixing, and the GitHub Environments that gate publishes. The model is ADR-0009 (classic GitFlow, staying on semver 10.x), which replaces ADR-0004 and changes part of ADR-0001 (milestone #13, RFC #267). It keeps ADR-0007's on-demand cut and ADR-0008's decision against a separate experimental branch.
Audience. Maintainers cutting releases or hotfixing older lines. Contributors filing PRs against
developdon't need this — see CONTRIBUTING.md. An AI tool asked to cut a release should use thecutting-a-releaseskill (.agents/skills/cutting-a-release/SKILL.md), which follows this doc.
develop and main are renames of branches that already existed (main and release/v10.4) — nothing was created from scratch.
| Branch | Purpose | Cut from / merges from | Publishes | Ships to |
|---|---|---|---|---|
develop (was main) |
Integration trunk. All work lands here, including fast/AI-assisted work. Default branch. | — | Every push: 10.5.0-alpha.<n> (next minor after the last GA tag) |
GitHub Packages only |
release/vX.Y |
Stabilizes the next release. Cut on demand, at the first release of that minor — not ahead of time (ADR-0007). Only non-breaking fixes land here. | develop |
Every push: 10.5.0-beta.<n> (GitHub Packages). -rc.N tags (nuget.org) |
GitHub Packages, nuget.org for -rc tags |
main (was release/v10.4) |
Production trunk. Receives only release/vX.Y (GA) or hotfix/vX.Y.Z merges. |
release/vX.Y, hotfix/* |
GA tags | GitHub Packages + Releases + nuget.org |
support/v10 (+ hotfix/v10.x) |
Older legacy line, versions before 10.4. Security/critical fixes only. Separate from main — not affected by this model. |
— | Tags | Same as main |
support/vN |
What a major becomes once a later major replaces it. Not in use yet — the project hasn't cut a major. | — | Tags | Same as main |
feature/<slug>, bugfix/<slug>, chore/<slug>, docs/<slug> |
Working branches, PR'd against develop. |
develop |
— | — |
Work moves forward-only: develop → release/vX.Y → main. A breaking change lands on develop behind [Experimental("FALLOUT0xx")] (or a short-lived branch off develop) and waits for v11 — there's no fixed date; see ADR-0009. master is not used.
GitVersion (GitVersion.yml, GitFlow preset) computes the version from the branch and the tags (ADR-0011). Nobody edits a version file.
| Source | Version |
|---|---|
develop |
10.5.0-alpha.<n> (next minor after the last GA tag) |
release/vX.Y or release/X.Y |
10.5.0-beta.<n> |
Tag 10.5.0-rc.1 |
10.5.0-rc.1 |
Tag 10.5.0 |
10.5.0 |
- Tags have no
vprefix. Olderv10.xtags stay as they are. - On a tag build, the release workflow passes the tag to the build as
ReleaseTag, and the tag is used as the package version. GitVersion alone cannot do this on a detached tag checkout. - To check a version locally:
dotnet tool install -g GitVersion.Tool --version 6.8.2, thendotnet-gitversion /showvariable FullSemVer.
-
Cut the branch (only when the release is actually ready — ADR-0007):
git fetch git switch develop && git pull --ff-only git switch -c release/v10.5 develop git push -u origin release/v10.5Branch protection attaches automatically (see Protection below) — nothing else to do.
-
Tag an rc on the release branch (no version commit is needed):
gh release create 10.5.0-rc.1 --target release/v10.5 --title "10.5.0-rc.1" \ --prerelease --generate-notes --notes-start-tag <last-GA-tag>
Repeat with
rc.2,rc.3, ... as fixes land, cherry-picked or PR'd onto the release branch. Do not reuse a tag name: a GitHub Release with an immutable tag cannot take uploads again.--notes-start-tagmust be the last GA tag, not the previous rc. Left alone,ghpicks the most recent tag, so an rc's notes only show what changed since the last rc — anchoring on the last GA shows the full set of changes since the last real release. -
Merge to
mainand tag GA once the release branch is ready:gh pr create --base main --head release/v10.5 ... # rigorous review # once merged: gh release create 10.5.0 --target main --generate-notes --notes-start-tag <last-GA-tag> # merge main back into develop so the trunk carries the GA commit: gh pr create --base develop --head main ...
Both tag pushes (step 2 and step 3) fire .github/workflows/publish-packages-release.yml: validate-ref confirms the tag is reachable from main, release/v*, or support/*; test-and-pack builds and uploads the packages; then three jobs publish in parallel — publish-github-packages (all packages, always), publish-github-releases (attaches to the GH Release, always), and publish-nuget-org.
- GA tags (
10.5.0) and-rctags (10.5.0-rc.2) publishFallout.*to nuget.org automatically. There is no approval step. - Any other prerelease tag (
10.5.0-beta.1, ...) skips nuget.org. - The
Nuke.*shim packages never go to nuget.org. - A push to nuget.org cannot be undone (only unlisted), so only repo admins can create these tags (see Protection).
To re-run a partial publish after a transient failure, dispatch the workflow with the existing tag:
gh workflow run publish-packages-release.yml --ref main -f tag=10.5.0
--refmust be the production branch, not the default branch.workflow_dispatchruns whichever branch's copy of the workflow you dispatch against —-f tag=only picks which source gets packed. Dispatching againstdeveloprunsdevelop's copy of the pipeline, which can differ from the release branch's.
Every dotnet nuget push uses --skip-duplicate, so re-running is safe.
A green run is not proof anything published. Every publish job is conditional and can silently skip on a misconfigured condition. After a release, verify:
gh api repos/Fallout-build/Fallout/actions/runs/<run-id>/jobs --jq '.jobs[] | "\(.name): \(.conclusion)"' curl -s https://api.nuget.org/v3-flatcontainer/fallout.common/index.json | jq '.versions[-3:]'Allow a minute or two for nuget.org to index a new package.
One known gap in release notes: work promoted by cherry-pick gets new commit SHAs, so GitHub can't map it back to its original PR — it shows up as the cherry-pick's own PR instead. Add a short manual summary above the generated notes if that matters for a given release.
If production needs a fix before the next scheduled release, cut a hotfix/vX.Y.Z branch from main, fix it, tag it there, then forward-port the same fix to develop so the trunk doesn't fall behind:
git switch -c hotfix-v10.5.1 main
git cherry-pick <fix-sha>
gh pr create --base main ...
# once merged and tagged 10.5.1 on main:
git switch -c forward-port-XXXX develop
git cherry-pick <fix-sha>
gh pr create --base develop ...A support/v10 fix (for a version older than 10.4, where the code has already moved on) lands directly on support/v10 (or hotfix/v10.x) the same way — that's the normal maintenance path, not an exception. Even a one-commit cherry-pick goes through a PR; branch protection blocks direct pushes everywhere.
This follows the same steps as cutting a release above, plus one difference: the breaking work that's been waiting on develop (behind [Experimental], or on short-lived topic branches) is what goes into the release branch. release/v11.0 is still cut from develop the same way, on demand, and still merges to main for GA the same way.
Once v11 ships, 10.x consumers need a line that keeps getting security fixes without being forced onto v11. support/v10 already exists for pre-10.4 versions, so the last 10.x minor (the one main was on right before the v11 merge) needs its own line — the exact branch name is a decision for when this actually happens, not something this doc pins down in advance.
Consumers upgrading from 10.x to v11 use fallout-migrate — the same tool that already handles the NUKE-to-Fallout move, extended to cover whatever v11 changes.
Once a support/* line hits end-of-life: ship a final patch, announce it in the README, and leave the branch in place — don't delete it (branches are cheap; deletion is destructive). A genuinely dead branch with no unique history may be deleted per ADR-0007 §6. Optionally tighten its protection (e.g. require admin approval on every merge) to make accidental tags less likely.
develop, main, every release line, and every support/* branch share the
same protection profile:
- Required status check:
ubuntu-latest - Linear history required (no merge commits)
- CODEOWNER review required (0 additional approvals)
- Direct pushes blocked (PRs only)
- Force-push and branch deletion blocked
- Conversation resolution required
- Admins not enforced (admins can bypass in emergencies)
Stale approvals are not dismissed when new commits land (dismiss_stale_reviews: false).
Release branches (release/v10.5, and so on) are covered by the "Protect release/** production lines" ruleset (19766406), targeting refs/heads/release/** — protection attaches the moment a branch is pushed, nothing to apply by hand. It mirrors main's profile above. Repo admins bypass. The payload lives at .github/release-branch-ruleset.json; re-apply after editing it with:
gh api -X PUT repos/Fallout-build/Fallout/rulesets/19766406 --input .github/release-branch-ruleset.jsondevelop, main, and support/* carry their own classic per-branch protection, configured individually rather than by pattern.
Tags matching [0-9]*.[0-9]*.[0-9]* (and the older v*) are protected by a separate ruleset (17017817) — only repo admins can create, delete, or update one. The nuget-org environment has no approval step, so this ruleset is the only gate on who can ship to production.
Maintainer follow-up. This doc describes the target shape. Three GitHub-settings changes still need doing, separately from this repo's docs/CI: rename
maintodevelop, renamerelease/v10.4tomain, and makedevelopthe default branch (which re-pointsdevelop's branch protection from what used to apply tomain). See ADR-0009's Negative consequences.
nuget.org's Fallout.* prefix reservation is per-ID, not per-prefix-wildcard: CI's first nuget push for any never-published Fallout.X package ID returns 403 (does not have permission to access the specified package) until someone manually web-uploads one nupkg to register the ID. Two traps when doing that upload:
- Set the package owner to the org, not your personal account. The nuget.org upload UI doesn't prompt you; ownership defaults to the uploading user's profile. If you forget, the package ID is reserved but the org's
NUGET_API_KEYstill 403s on subsequent pushes (the key is scoped to org-owned packages). Fix viaManage Package → Owners → Add owner → <org>then optionally remove your personal account. Or upload using credentials of the org's service account directly. See #208 for what this looks like when it goes wrong. - Validation can lag the upload by 5–30 minutes. The package page may say "approved" while the API key permission hasn't propagated yet. Wait, then rerun the release pipeline (
gh run rerun <id> --failed);--skip-duplicatemakes the retry safe for already-published packages.
- docs/adr/0009-gitflow-and-semver-reversion.md — the branching/versioning decision.
- docs/adr/0001-release-branch-model.md — the release-branch + multi-channel CD model.
- milestone #13 — the original work-breakdown.
- RFC #267 — original design discussion.
- CONTRIBUTING.md — contributor-facing flow.
.agents/skills/cutting-a-release/SKILL.md— the on-demand agent procedure that follows this doc.