2026-07-28 19:38:11 +00:00
|
|
|
# Release Procedure
|
|
|
|
|
|
2026-09-26 14:25:32 +00:00
|
|
|
The [release policy](policy/release.md) owns versioning, compatibility,
|
2026-11-23 19:23:52 +00:00
|
|
|
publication completion, and immutability. This runbook gives Scriptorium's
|
|
|
|
|
local selections; [ReleaseKit v0.10.0][adoption] owns release mechanics.
|
2026-07-28 19:38:11 +00:00
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
## Prepare
|
2026-07-28 19:38:11 +00:00
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
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).
|
2026-11-17 20:09:23 +00:00
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
Select Go 1.27.4 and prepare public dependencies before offline validation:
|
2026-11-17 20:09:23 +00:00
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
go version
|
2026-09-26 14:25:32 +00:00
|
|
|
GOWORK=off go mod download
|
2026-07-28 19:38:11 +00:00
|
|
|
```
|
|
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
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:
|
2026-09-26 15:54:47 +00:00
|
|
|
|
|
|
|
|
```markdown
|
2026-11-23 19:23:52 +00:00
|
|
|
[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)
|
2026-07-28 19:38:11 +00:00
|
|
|
```
|
|
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
Publish the intended `main` commit to `origin` before publishing its tag.
|
|
|
|
|
The checked-in note supplies the complete hosted release body unchanged.
|
2026-07-28 19:38:11 +00:00
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
## Publish And Deliver
|
2026-07-28 19:38:11 +00:00
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
From the module root, substitute the selected version:
|
2026-07-28 19:38:11 +00:00
|
|
|
|
|
|
|
|
```sh
|
2026-11-23 19:23:52 +00:00
|
|
|
sh ./releasekit publish VERSION
|
2026-07-28 19:38:11 +00:00
|
|
|
```
|
|
|
|
|
|
2026-11-23 19:23:52 +00:00
|
|
|
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-<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 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
|