|
|
|
|
@@ -73,9 +73,9 @@ Then select a module and semantic version with the shared launcher:
|
|
|
|
|
The launcher copies the selected module's `go.mod` and `go.sum` to temporary
|
|
|
|
|
alternate module files outside the checkout, resolves ReleaseKit from that
|
|
|
|
|
module's local dependency selection, adds the CLI tool declaration to that
|
|
|
|
|
temporary copy, and prepares its dependencies. It uses `go tool releasekit`
|
|
|
|
|
with the alternate module file to invoke `publish` with the repository profile
|
|
|
|
|
and `--expected-module` so the library can verify that the profile agrees with
|
|
|
|
|
temporary copy, and prepares its dependencies. It invokes the tool by its full
|
|
|
|
|
package path with the alternate module file to run `publish` with the repository
|
|
|
|
|
profile and `--expected-module` so the library can verify that the profile agrees with
|
|
|
|
|
the selected table row. Go builds and caches the executable and preserves its
|
|
|
|
|
exit status; the launcher removes the temporary metadata on exit. As with any
|
|
|
|
|
`publish` invocation, commit the selected module's release note and prepare its
|
|
|
|
|
@@ -89,9 +89,9 @@ This declaration does not infer dependency order or rerun the standard suite.
|
|
|
|
|
The maintained [Woodpecker example](woodpecker.yml) uses the same map and
|
|
|
|
|
selector for root, `ckconfig`, and major-version tags. It verifies and detaches
|
|
|
|
|
the literal event tag before selecting the module, copies that module's metadata
|
|
|
|
|
outside the checkout, and runs the ReleaseKit version selected there through
|
|
|
|
|
`go tool releasekit`. It then uses `ci-deliver --prepared` with the mapped profile
|
|
|
|
|
and expected physical module.
|
|
|
|
|
outside the checkout, and runs the selected ReleaseKit tool by its full package
|
|
|
|
|
path. It passes `ci-deliver --prepared`, the mapped profile, and the expected
|
|
|
|
|
physical module to the tool.
|
|
|
|
|
The `core-v2` profile demonstrates binary delivery; the other profiles are
|
|
|
|
|
page-only. Before enabling the workflow, configure each selected profile's
|
|
|
|
|
`delivery` object with `"forge": "gitea"`, its `base_url`, owner, and repository,
|
|
|
|
|
@@ -131,21 +131,21 @@ fixture and run the source-selected tool without publishing:
|
|
|
|
|
releasekit_host_os=$(go env GOHOSTOS) || exit $?
|
|
|
|
|
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
|
|
|
|
|
export GOOS="$releasekit_host_os" GOARCH="$releasekit_host_arch"
|
|
|
|
|
go tool releasekit check --config releasekit-root.json v1.2.3
|
|
|
|
|
go tool go.maximumdirect.net/releasekit/cmd/releasekit check --config releasekit-root.json v1.2.3
|
|
|
|
|
)
|
|
|
|
|
(
|
|
|
|
|
cd ./integrations/ckconfig || exit $?
|
|
|
|
|
releasekit_host_os=$(go env GOHOSTOS) || exit $?
|
|
|
|
|
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
|
|
|
|
|
export GOOS="$releasekit_host_os" GOARCH="$releasekit_host_arch"
|
|
|
|
|
go tool releasekit check --config releasekit-ckconfig.json v1.2.3
|
|
|
|
|
go tool go.maximumdirect.net/releasekit/cmd/releasekit check --config releasekit-ckconfig.json v1.2.3
|
|
|
|
|
)
|
|
|
|
|
(
|
|
|
|
|
cd ./integrations/core/v2 || exit $?
|
|
|
|
|
releasekit_host_os=$(go env GOHOSTOS) || exit $?
|
|
|
|
|
releasekit_host_arch=$(go env GOHOSTARCH) || exit $?
|
|
|
|
|
export GOOS="$releasekit_host_os" GOARCH="$releasekit_host_arch"
|
|
|
|
|
go tool releasekit check --config releasekit-core-v2.json v2.1.0
|
|
|
|
|
go tool go.maximumdirect.net/releasekit/cmd/releasekit check --config releasekit-core-v2.json v2.1.0
|
|
|
|
|
)
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|