2.4 KiB
Source-only configuration example
This example releases JSON configuration without a Go module. Copy its files
into a repository, set the product and forge destination in releasekit.json,
and select a published ReleaseKit version that supports source-only calendar
releases in .releasekit-version. The committed v0.10.0 value illustrates
the pin syntax only: it predates this feature and must be replaced before use.
The release that first supplies these interfaces has not yet been assigned a
version.
Install a local Go toolchain and Git. scripts/releasekit-tool reads the single
stable module version in the repository-root pin, installs the host executable
under the ignored .releasekit/tools directory, and prints its absolute path.
The private installation is reusable; installation can use the network, while
candidate validation remains offline. The launcher honors configured Go proxy,
checksum, and cache settings and disables automatic toolchain downloads and
workspace discovery. Update only the pin to select another tool version.
Save the local forge token in .releasekit/gitea-token and the separate
Woodpecker API token in .releasekit/woodpecker-token with owner-only
permissions. Set the Woodpecker URL and numeric repository ID in the profile. The ignore rule keeps it out of ordinary commits; the optional
validation.forbidden_files check rejects a candidate that includes that
path. Configure the Woodpecker stored secret releasekit_gitea_token, which the
workflow injects as the CI job variable RELEASEKIT_GITEA_TOKEN.
After preparing a committed release note and authoritative main, run:
./scripts/releasekit validate
./scripts/release 2026-12-05
The second command publishes the source tag. The delivery workflow
checks out and verifies the event tag before reading its committed pin. It
installs the same version for the host and invokes ci-deliver; page delivery
is separate from successful source publication. scripts/releasekit forwards
other CLI commands, including recovery commands, to the installed executable.
The publication failure output identifies the durable executable and exact
attempt record to use after the original launcher exits.
After configuring both tokens, ./scripts/releasekit test runs the optional
live diagnostic through the same tagged delivery workflow and records cleanup
evidence for explicit recovery.