Add release workflow: cross-platform binaries with mandatory test gate#1
Merged
Merged
Conversation
Copilot created this pull request from a session on behalf of
torgiren
March 25, 2026 19:45
View session
…builds Co-authored-by: torgiren <1117481+torgiren@users.noreply.github.com> Agent-Logs-Url: https://github.com/torgiren/ksef-cli/sessions/8b555ca7-815f-4fd0-b773-c59ef0536491
8a783b7 to
3a6bcba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
go.ymlonly triggers on branch pushes and PRs — pushing av*tag runs nothing, so releases were published without any test coverage. This adds a dedicated release workflow that enforces tests before any binary leaves the repo.Changes
.github/workflows/release.yml— new workflow triggered onv*tag pushes with a three-stage pipeline:test— runsgo test -v ./...; all downstream jobs are blocked until it passesbuild— matrix cross-compilation forlinux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64; binaries namedksef-cli-{os}-{arch}[.exe]release— creates a GitHub Release viasoftprops/action-gh-release@v2and attaches all artifactsLeast-privilege
permissionson every job (contents: readontest/build,contents: writeonly onrelease)The two workflows are complementary:
go.ymlcovers CI on branches/PRs,release.ymlcovers the tag → published-binary path.