# Release Procedure The [release policy](policy/release.md) owns versioning, compatibility, publication completion, and immutability. This runbook gives Scriptorium's local selections; [ReleaseKit v0.10.0][adoption] owns release mechanics. ## Prepare Use a POSIX shell, Git with a configured tagger identity, Go 1.27.4, and the native race detector's C compiler prerequisites. If tags are signed, arrange the signing tool and key. Work from the repository root on `main`; the authoritative `origin` push endpoint is currently `ssh://git@forge.maximumdirect.net:22222/eric/scriptorium.git`. The Go consumer minimum is separate; see the [developer guide](development.md). Select Go 1.27.4 and prepare public dependencies before offline validation: ```sh go version GOWORK=off go mod download ``` Choose an unused stable version and commit its note at `docs/releases/.md`, beginning with `# Scriptorium `. Include the relevant compatibility impact and upgrade actions. For the eventual ReleaseKit adoption release, mention the new maintainer entry point and the loss of separately injected revision metadata. End the note with immutable links, substituting the chosen tag in all three locations: ```markdown [COPYRIGHT](https://forge.maximumdirect.net/eric/scriptorium/src/tag//COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/scriptorium/src/tag//LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/scriptorium/src/tag//docs/oss/attribution.md) ``` Publish the intended `main` commit to `origin` before publishing its tag. The checked-in note supplies the complete hosted release body unchanged. ## Publish And Deliver From the module root, substitute the selected version: ```sh sh ./releasekit publish VERSION ``` The module-selected tool uses [releasekit.json](../releasekit.json) for product, race testing, Linux amd64/arm64 builds, and delivery selections. Native `check` is an optional diagnostic, not a required step before `publish`. See the [CLI][cli], [profile][profile], [build][build], and [publication and reconciliation][publication] guides for command semantics and recovery. A successful tag push completes source publication; hosted delivery is asynchronous and must be reported separately. The tag-triggered [Woodpecker workflow](../.woodpecker/release.yml) delivers `scriptorium--linux-amd64`, `scriptorium--linux-arm64`, and `SHA256SUMS`. An operator must provision the Woodpecker repository secret `releasekit_gitea_token`, mapped to `RELEASEKIT_GITEA_TOKEN`; source publication itself needs no delivery token. Keep the earlier `GITEA_RELEASE_TOKEN` secret for historical tagged workflows. For delivery retries and partial or unknown outcomes, follow the upstream [delivery guide][delivery] and retain original build artifacts where rebuilding could change bytes. Runtime version behavior is described by the [runtime version guide][runtime]. [adoption]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/consumers/adoption.md [cli]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/cli.md [profile]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/config.md [build]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/consumers/build.md [publication]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/consumers/publish.md [delivery]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/consumers/delivery.md [runtime]: https://forge.maximumdirect.net/base-layer/releasekit/src/commit/82bac1a3ab935beddd4b8789d1e07f52135d4243/docs/consumers/runtime-version.md