Releasing
A release is drafted by the bot and signed by the maintainer, and only a
signed tag publishes one
(release.yml,
ADR-0019).
The workflow never creates a version tag itself.
- Drafting. Running
release.ymlon demand computes the next version from the conventional commits since the last tag, or takes the one given, writes itsCHANGELOG.mdsection with git-cliff, and opens the pull requestrelease/vX.Y.Zas the App. A dispatch for a version whose branch exists is refused, so it never discards edits made there. - Signing. The maintainer edits and merges that pull request, then signs
the squash commit’s tag,
git tag -s vX.Y.Z, and pushes it. - Publishing, on that tag:
verifychecks the tag’s signature against.github/allowed_signersonmain, and fails closed without it;gateruns the package’s own gate in full;buildbuilds the PHAR, holding no secret;publishsigns the PHAR with the release key and attests it, once its SHA-256 is the onebuildnamed, and creates the GitHub release with the version’s changelog section as its notes;imagepushesghcr.io/nightworksio/mutation-gatewith its provenance, tagged with the version, its minor and its major;linemoves the tag of the release line to it:vMAJOR.MINORwhile the major is 0, such asv0.1, andvMAJORfrom 1.0.0.
The release key’s fingerprint, and how to verify a release, are in security. What a release may change is in compatibility.
The docs of a release
The docs site keeps a copy of each minor’s docs, built from its newest tag, so
a published release adds its copy when pages.yml runs again
(the docs).