fix(release): embed version in artifacts
This commit is contained in:
parent
c15727e9ab
commit
0af3c331ff
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user