Files
notarius/docs/release.md

99 lines
4.5 KiB
Markdown
Raw Normal View History

# Releases
2026-08-25 02:01:52 +00:00
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.
2026-08-25 02:01:52 +00:00
## Prepare
2026-08-25 02:01:52 +00:00
Use Git, a POSIX shell, a Go installation, Git access to `origin`, and ordinary
access to private modules. The consumer minimum remains in [go.mod](../go.mod).
Select the newest stable patch in its current minor series, Go 1.27, for testing
and release builds. Resolve it afresh when preparing each release rather than
pinning the consumer minimum or relying on whichever patch is installed locally.
Prepare the selected toolchain and dependencies separately from offline validation:
```sh
export GOWORK=off
notarius_release_go=$(GOTOOLCHAIN=local go list -m -f '{{.Version}}' go@1.27)
export GOTOOLCHAIN="go${notarius_release_go}"
go version
go mod download
2026-08-25 02:01:52 +00:00
```
If version lookup fails, resolve that failure before proceeding. Keep this
environment for validation, publication, and delivery. The native Go version
query selects the patch without changing `go.mod` or `go.sum`; see
[Go toolchain selection](https://go.dev/doc/toolchain).
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.
```markdown
[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:
2026-08-25 02:01:52 +00:00
```sh
git push origin main
2026-08-25 02:01:52 +00:00
```
## Publish source
2026-08-25 02:01:52 +00:00
From the clean candidate on `main`, run:
2026-08-25 02:01:52 +00:00
```sh
./scripts/releasekit publish vMAJOR.MINOR.PATCH
```
2026-08-25 02:01:52 +00:00
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.
2026-08-25 02:01:52 +00:00
## 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:
2026-08-25 02:01:52 +00:00
```sh
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
2026-08-25 02:01:52 +00:00
```
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](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.