2026-12-05 22:30:21 +00:00
|
|
|
# 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`,
|
2026-12-06 03:48:03 +00:00
|
|
|
and select ReleaseKit v0.11.0 or a compatible later version in
|
|
|
|
|
`.releasekit-version`. The committed pin selects v0.11.0, which introduces
|
|
|
|
|
source-only calendar releases.
|
2026-12-05 22:30:21 +00:00
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
2026-12-05 23:35:52 +00:00
|
|
|
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
|
2026-12-05 22:30:21 +00:00
|
|
|
`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:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
./scripts/releasekit validate
|
|
|
|
|
./scripts/release 2026-12-05
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The second command publishes the source tag. The [delivery workflow](.woodpecker/delivery.yml)
|
|
|
|
|
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.
|
2026-12-05 23:35:52 +00:00
|
|
|
|
|
|
|
|
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.
|