diff --git a/cmd/releasekit/release_wrapper_test.go b/cmd/releasekit/release_wrapper_test.go index 470e716..723a70b 100644 --- a/cmd/releasekit/release_wrapper_test.go +++ b/cmd/releasekit/release_wrapper_test.go @@ -21,6 +21,10 @@ func TestReleaseWrapperPreservesNativeExitStatuses(t *testing.T) { if err != nil { t.Fatal(err) } + controller, err := os.ReadFile(filepath.Join(root, "cmd/releasekit/main.go")) + if err != nil { + t.Fatal(err) + } wrapper, err := os.ReadFile(filepath.Join(root, "scripts/release")) if err != nil { t.Fatal(err) @@ -42,6 +46,10 @@ func TestReleaseWrapperPreservesNativeExitStatuses(t *testing.T) { if err := os.WriteFile(filepath.Join(repository, "scripts/release"), wrapper, 0755); err != nil { t.Fatal(err) } + // Exercise the current controller, including changes awaiting this commit. + if err := os.WriteFile(filepath.Join(repository, "cmd/releasekit/main.go"), controller, 0600); err != nil { + t.Fatal(err) + } if err := os.MkdirAll(filepath.Join(repository, "docs/releases"), 0700); err != nil { t.Fatal(err) } diff --git a/docs/release.md b/docs/release.md index 727c27d..b735f22 100644 --- a/docs/release.md +++ b/docs/release.md @@ -105,7 +105,8 @@ uses the version, choose a new version after resolving the conflict. If validation or a guard fails before this invocation pushes, correct and commit the candidate, publish `main`, and run the command again. A retained local tag still requires the authoritative-state check above before removal; -a concurrent publisher may already have published the version. The prepared Woodpecker workflow builds the CLI from the tagged +a concurrent publisher may already have published the version. The prepared +Woodpecker workflow builds the CLI from the tagged checkout and runs page-only delivery. To activate it after configuring the destination and secret, copy it to `.woodpecker/releasekit-source-delivery.yml` and add the Woodpecker repository secret `releasekit_gitea_token`. If page