Make local release delivery the standard workflow
This commit is contained in:
@@ -41,8 +41,7 @@ License and notices: [CC BY-SA 4.0](licenses/CC-BY-SA-4.0.txt) |
|
||||
## ReleaseKit
|
||||
|
||||
Selected module: `go.maximumdirect.net/releasekit` at `v0.10.0`.
|
||||
Material: `scripts/releasekit` and `.woodpecker/release.yml`, adapted from the
|
||||
adoption guide and tag-delivery example.
|
||||
Material: `scripts/releasekit`, adapted from the adoption guide.
|
||||
|
||||
Copyright (C) 2026 Eric Rakestraw
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
**Base Policy Version:** 1.7
|
||||
|
||||
**Last Updated**: 2026-11-24
|
||||
**Last Updated**: 2026-12-04
|
||||
|
||||
**Upstream Source**: https://gitea.maximumdirect.net/eric/policy/src/commit/593c9b52273c5c879785ae9e995d21026df467b4/docs/policy/release.md
|
||||
|
||||
@@ -42,8 +42,8 @@ separate remote read-back gate.
|
||||
|
||||
Deliver the checked-in note as a hosted release page with the selected
|
||||
Linux/amd64 binary and native checksum assets. Delivery is required but has a
|
||||
separate outcome from source publication; it may run asynchronously in tag CI
|
||||
or locally from the matching tagged source. Signing and additional packaging
|
||||
separate outcome from source publication. The standard workflow delivers locally
|
||||
from the matching tagged source. Signing and additional packaging
|
||||
are not part of the current release workflow.
|
||||
|
||||
## Versioning And Compatibility
|
||||
|
||||
@@ -12,8 +12,9 @@ the selected toolchain and dependencies separately from offline validation:
|
||||
|
||||
```sh
|
||||
export GOTOOLCHAIN=go1.27.0
|
||||
export GOWORK=off
|
||||
go version
|
||||
GOWORK=off go mod download
|
||||
go mod download
|
||||
```
|
||||
|
||||
Choose an unused stable version under the policy's compatibility rules. Add
|
||||
@@ -34,7 +35,7 @@ ReleaseKit:
|
||||
git push origin main
|
||||
```
|
||||
|
||||
## Publish and deliver
|
||||
## Publish source
|
||||
|
||||
From the clean candidate on `main`, run:
|
||||
|
||||
@@ -48,19 +49,23 @@ completes the source release; it does not wait for delivery. The optional
|
||||
`./scripts/releasekit check VERSION` is a diagnostic, not a mandatory
|
||||
preliminary repetition.
|
||||
|
||||
Tag CI uses the committed profile to deliver the note and binary/checksum assets.
|
||||
Provision Woodpecker secret `releasekit_gitea_token` and its Git/module access
|
||||
before relying on this route. Alternatively, from a clean checkout of the
|
||||
matching tag with dependencies prepared, run:
|
||||
## Deliver locally
|
||||
|
||||
After successful source publication, deliver the hosted note, Linux/amd64 binary,
|
||||
and checksum assets from the same clean checkout, while `HEAD` still identifies
|
||||
the published tag's commit:
|
||||
|
||||
```sh
|
||||
./scripts/releasekit deliver vMAJOR.MINOR.PATCH
|
||||
```
|
||||
|
||||
Use one delivery route as appropriate, not both routinely. Local delivery uses
|
||||
Local delivery is the standard workflow; no CI job performs delivery. It uses
|
||||
the ignored `.releasekit/gitea-token` file or a nonblank
|
||||
`RELEASEKIT_GITEA_TOKEN` environment override. Keep the file owner-only and
|
||||
never display its contents. Git publication uses Git credentials, not this token.
|
||||
When resuming delivery later, use a clean checkout of the matching tag and prepare
|
||||
the toolchain and dependencies as above. Delivery does not repeat the publication
|
||||
test suite or publish another tag.
|
||||
See the [delivery guide](https://forge.maximumdirect.net/base-layer/releasekit/src/tag/v0.10.0/docs/consumers/delivery.md)
|
||||
for credential setup and delivery details.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user