Files
notarius/docs/release.md

3.8 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
go version
GOWORK=off 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 and deliver

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.

Tag CI uses the committed profile to deliver the note and binary/checksum assets. Provision Woodpecker secret releasekit_gitea_token and its Git/module access before relying on this route. Alternatively, from a clean checkout of the matching tag with dependencies prepared, run:

./scripts/releasekit deliver vMAJOR.MINOR.PATCH

Use one delivery route as appropriate, not both routinely. Local delivery 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. 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.