fix(release): embed version in artifacts
Some checks failed
ci / test (push) Has been cancelled
ci / worker (push) Has been cancelled
ci / darwin-cgo-build (push) Has been cancelled

This commit is contained in:
Peter Steinberger 2026-01-10 02:06:20 +01:00
parent c15727e9ab
commit 0af3c331ff
2 changed files with 16 additions and 0 deletions

View File

@ -9,6 +9,11 @@ builds:
- id: gog
main: ./cmd/gog
binary: gog
ldflags: >-
-s -w
-X github.com/steipete/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/steipete/gogcli/internal/cmd.commit={{ .ShortCommit }}
-X github.com/steipete/gogcli/internal/cmd.date={{ .Date }}
env:
- CGO_ENABLED=0
targets:
@ -19,6 +24,11 @@ builds:
- id: gog_darwin
main: ./cmd/gog
binary: gog
ldflags: >-
-s -w
-X github.com/steipete/gogcli/internal/cmd.version={{ .Tag }}
-X github.com/steipete/gogcli/internal/cmd.commit={{ .ShortCommit }}
-X github.com/steipete/gogcli/internal/cmd.date={{ .Date }}
env:
- CGO_ENABLED=1
targets:

View File

@ -1,5 +1,11 @@
# Changelog
## 0.5.2 - 2026-01-10
### Fixed
- Release builds: embed version/commit/date so `gog --version` is correct (Homebrew/tap installs too).
## 0.5.1 - 2026-01-09
### Added