gogcli/.goreleaser.yaml
Peter Steinberger 2c9c1dcc8b
Some checks failed
ci / test (push) Has been cancelled
ci / worker (push) Has been cancelled
ci / windows (push) Has been cancelled
ci / darwin-cgo-build (push) Has been cancelled
pages / Deploy docs (push) Has been cancelled
build: sign macos release binaries
2026-05-05 17:06:03 +01:00

55 lines
1.2 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
hooks:
post:
- ./scripts/codesign-macos.sh "{{ .Path }}"
archives:
- ids:
- gog
- gog_darwin
formats:
- tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
formats:
- zip
checksum:
name_template: checksums.txt