Files
narratio/docs/release.md

4.1 KiB

Releasing Narratio

This is the maintainer runbook for the release policy. 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. 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:

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.

Prepare and publish

Choose an unused stable version under the versioning and compatibility rules. 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:

[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:

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 and publish 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. For failed or partial delivery, retry from the same immutable tag using the delivery guide. 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.