Commit 0647ea1
authored
ci: build release binaries with goreleaser (#55)
* ci: build release binaries with goreleaser
Six targets, matching the cross-compile job: linux, darwin and windows on
amd64 and arm64. CGO_ENABLED=0 costs nothing — go-keyring shells out to
`security` on macOS and talks D-Bus on Linux, neither of which needs cgo.
The tag drives everything: release-please creates it and the release, then
`mode: append` uploads the archives into that release without touching the
notes it wrote.
beep boop
* ci: attest release archives
goreleaser has no attestation of its own — the documented route is
actions/attest after it runs. subject-checksums attests every file listed in
checksums.txt, so all six archives are covered without naming them.
Verify with `gh attestation verify --owner Flagsmith <file>`.
beep boop
* ci: mark beta releases as Latest
GitHub will not let a prerelease be Latest ("Drafts and prereleases cannot be
set as latest"), and the prerelease flag is not separable from the -beta
version: release-please derives it from the version itself. So clear the flag
after publishing instead. The condition takes itself out of service once 2.0.0
ships, since a stable release becomes Latest on its own.
beep boop
* ci: never touch the notes release-please wrote
`mode` governs the release notes, not the artifacts — those upload either way.
append happens to be harmless while the changelog is disabled, since our notes
are empty, but keep-existing says what we mean and stays correct if anyone
enables the changelog later.
beep boop
* fix: stop snapshot builds claiming to be a release
.Tag is the last release tag even under --snapshot, so every snapshot stamped
v1.1.0 and IsRelease then pinned doc URLs to a tag the build has nothing to do
with. Snapshots now stamp the snapshot version, v1.1.0-SNAPSHOT-090323e.
Stamping the literal `dev` would not have worked: resolve() treats dev as
unstamped and replaces it from debug.ReadBuildInfo, which yields a Go
pseudo-version — correct, but it would show up in --version and the User-Agent
as v1.1.1-0.20260730115333-090323eb8be5+dirty.
beep boop1 parent c617925 commit 0647ea1
2 files changed
Lines changed: 83 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments