3.9 KiB
Releases
This runbook implements the release policy. Source
publication and hosted delivery are separate outcomes. The primary branch is
main; origin is authoritative.
Prepare
Use Git, a POSIX shell, Go 1.27.0, Git access to origin, and ordinary access
to private modules. The consumer minimum remains in go.mod. Prepare
the selected toolchain and dependencies separately from offline validation:
export GOTOOLCHAIN=go1.27.0
export GOWORK=off
go version
go mod download
Choose an unused stable version under the policy's compatibility rules. Add
docs/releases/<version>.md beginning with # Notarius <version>, a concise
summary, and any compatibility or upgrade guidance. Update current documentation
and review the candidate normally. End the note with the following footer,
replacing <version> with the selected tag. Check the three paths in the
candidate; the future tag need not resolve yet.
[COPYRIGHT](https://forge.maximumdirect.net/eric/notarius/src/tag/<version>/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/notarius/src/tag/<version>/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/notarius/src/tag/<version>/docs/oss/attribution.md)
Commit the candidate on main, then publish the branch before invoking
ReleaseKit:
git push origin main
Publish source
From the clean candidate on main, run:
./scripts/releasekit publish vMAJOR.MINOR.PATCH
ReleaseKit validates the candidate once, checks the selected Linux/amd64 build
and native version, and publishes the annotated tag. A confirmed tag publication
completes the source release; it does not wait for delivery. The optional
./scripts/releasekit check VERSION is a diagnostic, not a mandatory
preliminary repetition.
Deliver locally
After successful source publication, deliver the hosted note, Linux/amd64 binary,
and checksum assets from the same clean checkout, while HEAD still identifies
the published tag's commit:
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
Local delivery is the standard workflow; no CI job performs delivery. It uses
the ignored .releasekit/gitea-token file or a nonblank
RELEASEKIT_GITEA_TOKEN environment override. Keep the file owner-only and
never display its contents. Git publication uses Git credentials, not this token.
When resuming delivery later, use a clean checkout of the matching tag and prepare
the toolchain and dependencies as above. Delivery does not repeat the publication
test suite or publish another tag.
See the delivery guide
for credential setup and delivery details.
Recovery
Report source publication and hosted delivery separately. Correct and commit a failed candidate before retrying publication. For failed or ambiguous source publication, use ReleaseKit's saved-record discovery and reconciliation guidance in the publication guide before retrying; do not move a possibly published tag.
Delivery failure does not undo source publication. Investigate uncertainty or conflicts before retrying against the same immutable tag. When retrying must preserve the original asset bytes, retain native build output and its receipt and follow the delivery retry guidance. Do not overwrite published content or republish source to repair delivery.
The selected upstream CLI and profile reference own command and configuration details. Change-specific vet, race, link, or other checks are not additional publication gates.