83 lines
4.1 KiB
Markdown
83 lines
4.1 KiB
Markdown
# Releasing Narratio
|
|
|
|
This is the maintainer runbook for the [release policy](policy/release.md).
|
|
The authoritative source destination is `origin` at
|
|
`ssh://git@forge.maximumdirect.net:22222/eric/narratio.git`; use `main`.
|
|
The hosted destination is [Narratio on Gitea](https://forge.maximumdirect.net/eric/narratio).
|
|
Install Git, a POSIX shell, and the native compiler and tools needed for Go race
|
|
builds. Git access must permit fetching and pushing tags.
|
|
|
|
## Release toolchain
|
|
|
|
Use the official Go 1.27.4 toolchain for validation and builds. The consumer
|
|
minimum remains Go 1.27.0. Prepare the selected toolchain, application modules,
|
|
and the module-selected ReleaseKit tool before offline validation:
|
|
|
|
```sh
|
|
export GOTOOLCHAIN=go1.27.4
|
|
go version
|
|
go mod download
|
|
./releasekit version
|
|
```
|
|
|
|
The launcher runs the ReleaseKit version selected in `go.mod`. The CI image
|
|
uses the same Go patch. See [upstream adoption guidance](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/adoption.md).
|
|
|
|
## Prepare and publish
|
|
|
|
Choose an unused stable version under the [versioning and compatibility
|
|
rules](policy/release.md#versioning-and-compatibility). Update affected current
|
|
documentation and prepare `docs/releases/vMAJOR.MINOR.PATCH.md` with a title
|
|
containing Narratio and the version, a summary, and any compatibility impact
|
|
or upgrade instructions. End the note with this footer, replacing the version
|
|
in each URL with the intended tag:
|
|
|
|
```markdown
|
|
[COPYRIGHT](https://forge.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/narratio/src/tag/vMAJOR.MINOR.PATCH/docs/oss/attribution.md)
|
|
```
|
|
|
|
Retire completed roadmaps as appropriate, preserve pending work, and review the
|
|
candidate through the ordinary development workflow. Commit the candidate and
|
|
push it to `origin/main`, then publish from the clean `main` checkout:
|
|
|
|
```sh
|
|
git add <candidate-files>
|
|
git commit -m "Prepare Narratio release"
|
|
git push origin main
|
|
./releasekit publish vMAJOR.MINOR.PATCH
|
|
```
|
|
|
|
ReleaseKit validates the committed candidate with the selected race-enabled
|
|
suite, full vet, Go formatting and local-replacement checks, and builds the
|
|
three selected binaries with an injected-version smoke check. It creates an
|
|
annotated tag and pushes it. Confirmed source-tag publication completes the
|
|
release; CI and hosted delivery are separate observations. For optional
|
|
diagnosis, use `./releasekit check vMAJOR.MINOR.PATCH`; publication runs its
|
|
own validation, so this is not a prerequisite. See the upstream
|
|
[check](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/check.md)
|
|
and [publish](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md)
|
|
guides for native behavior and diagnostics.
|
|
|
|
## Delivery and recovery
|
|
|
|
Tag-triggered Woodpecker CI uses the tagged module's ReleaseKit selection to
|
|
build and deliver the checked-in note and these assets asynchronously:
|
|
|
|
- `narratio-vMAJOR.MINOR.PATCH-linux-amd64`
|
|
- `narratio-vMAJOR.MINOR.PATCH-linux-arm64`
|
|
- `narratio-vMAJOR.MINOR.PATCH-darwin-arm64` (best effort)
|
|
- `SHA256SUMS`
|
|
|
|
A cross-build establishes compilation, not native macOS runtime coverage.
|
|
CI maps its existing `GITEA_RELEASE_TOKEN` secret to
|
|
`RELEASEKIT_GITEA_TOKEN`. Delivery does not determine source-release completion.
|
|
|
|
If publication is uncertain, use the recovery entry point printed by ReleaseKit
|
|
and its saved private publication record to reconcile the outcome before
|
|
retrying. Follow the [publication recovery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/publish.md#retain-and-reconcile-publication-evidence).
|
|
For failed or partial delivery, retry from the same immutable tag using the
|
|
[delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md).
|
|
Investigate conflicts or uncertain outcomes according to that guide; do not
|
|
replace published content. For older tags, use the tooling and workflow selected
|
|
by those tags.
|