4.5 KiB
Release Procedure
The release policy owns versioning, compatibility, publication completion, and immutability. This runbook gives Scriptorium's local selections; ReleaseKit v0.10.0 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.
Select Go 1.27.4 and prepare public dependencies before offline validation:
go version
GOWORK=off go mod download
Choose an unused stable version and commit its note at
docs/releases/<version>.md, beginning with # Scriptorium <version>. 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:
[COPYRIGHT](https://forge.maximumdirect.net/eric/scriptorium/src/tag/<version>/COPYRIGHT) | [LICENSE](https://forge.maximumdirect.net/eric/scriptorium/src/tag/<version>/LICENSE) | [ATTRIBUTION](https://forge.maximumdirect.net/eric/scriptorium/src/tag/<version>/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.
For local delivery, supply RELEASEKIT_GITEA_TOKEN or place the token in the
ignored .releasekit/gitea-token file with owner-only permissions. A nonblank
environment value takes precedence. The profile rejects that file if committed;
keep credentials out of commits and logs. Source publication does not require
delivery credentials.
Publish And Deliver
From the module root, substitute the selected version:
sh ./releasekit publish VERSION
The module-selected tool uses 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, profile, build, and publication and
reconciliation 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 delivers
scriptorium-<version>-linux-amd64, scriptorium-<version>-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 a delivery retry, use a clean checkout at the existing tag's commit and run
sh ./releasekit deliver VERSION with a delivery credential. Older tagged
profiles that lack token_file, including v0.16.0, require the environment
variable; the local token file is not selected automatically in those checkouts.
For partial or unknown outcomes, follow the upstream delivery guide
and retain original build artifacts where rebuilding could change bytes. Runtime
version behavior is described by the
runtime version guide.