gogcli/.goreleaser.yaml
Peter Steinberger 0af3c331ff
Some checks failed
ci / test (push) Has been cancelled
ci / worker (push) Has been cancelled
ci / darwin-cgo-build (push) Has been cancelled
fix(release): embed version in artifacts
2026-01-10 02:06:20 +01:00

50 lines
1.1 KiB
YAML

version: 2
project_name: gogcli
changelog:
disable: true
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:
- linux_amd64
- linux_arm64
- windows_amd64
- windows_arm64
- 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:
- darwin_amd64
- darwin_arm64
archives:
- builds:
- gog
- gog_darwin
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: checksums.txt