2026-11-23 19:21:22 +00:00
|
|
|
# Releases
|
2026-08-25 02:01:52 +00:00
|
|
|
|
2026-11-23 19:21:22 +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
|
|
|
|
2026-09-25 20:33:19 +00:00
|
|
|
## Prepare
|
2026-08-25 02:01:52 +00:00
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
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:
|
2026-11-17 20:09:48 +00:00
|
|
|
|
|
|
|
|
```sh
|
2026-11-17 20:39:48 +00:00
|
|
|
export GOTOOLCHAIN=go1.27.0
|
2026-11-17 20:09:48 +00:00
|
|
|
go version
|
2026-11-23 19:21:22 +00:00
|
|
|
GOWORK=off go mod download
|
2026-08-25 02:01:52 +00:00
|
|
|
```
|
|
|
|
|
|
2026-09-25 20:33:19 +00:00
|
|
|
Choose an unused stable version under the policy's compatibility rules. Add
|
2026-11-23 19:21:22 +00:00
|
|
|
`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.
|
2026-09-28 01:35:01 +00:00
|
|
|
|
|
|
|
|
```markdown
|
2026-11-23 19:21:22 +00:00
|
|
|
[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)
|
2026-09-28 01:35:01 +00:00
|
|
|
```
|
|
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
Commit the candidate on `main`, then publish the branch before invoking
|
|
|
|
|
ReleaseKit:
|
2026-08-25 02:01:52 +00:00
|
|
|
|
|
|
|
|
```sh
|
2026-11-23 19:21:22 +00:00
|
|
|
git push origin main
|
2026-08-25 02:01:52 +00:00
|
|
|
```
|
|
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
## Publish and deliver
|
2026-08-25 02:01:52 +00:00
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
From the clean candidate on `main`, run:
|
2026-08-25 02:01:52 +00:00
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
```sh
|
|
|
|
|
./scripts/releasekit publish vMAJOR.MINOR.PATCH
|
|
|
|
|
```
|
2026-08-25 02:01:52 +00:00
|
|
|
|
2026-11-23 19:21:22 +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
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
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:
|
2026-08-25 02:01:52 +00:00
|
|
|
|
|
|
|
|
```sh
|
2026-11-23 19:21:22 +00:00
|
|
|
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
|
2026-08-25 02:01:52 +00:00
|
|
|
```
|
|
|
|
|
|
2026-11-23 19:21:22 +00:00
|
|
|
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.
|