# Releases This runbook implements the [release policy](policy/release.md). 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](../go.mod). Prepare the selected toolchain and dependencies separately from offline validation: ```sh 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/.md` beginning with `# Notarius `, 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 `` with the selected tag. Check the three paths in the candidate; the future tag need not resolve yet. ```markdown [COPYRIGHT](https://forge.maximumdirect.net/eric/notarius/src/tag//COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/notarius/src/tag//LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/notarius/src/tag//docs/oss/attribution.md) ``` Commit the candidate on `main`, then publish the branch before invoking ReleaseKit: ```sh git push origin main ``` ## Publish and deliver From the clean candidate on `main`, run: ```sh ./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: ```sh ./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](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md) 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](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md) 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](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md). Do not overwrite published content or republish source to repair delivery. The selected upstream [CLI](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/cli.md) and [profile reference](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/config.md) own command and configuration details. Change-specific vet, race, link, or other checks are not additional publication gates.