dev: improve goreleaser configuration (#4660)

This commit is contained in:
Ludovic Fernandez 2024-04-18 21:45:16 +02:00 committed by GitHub
parent d681d93d0f
commit a6601827b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,13 +1,14 @@
--- ---
project_name: golangci-lint project_name: golangci-lint
release:
github:
owner: golangci
name: golangci-lint
builds: builds:
- binary: golangci-lint - binary: golangci-lint
main: ./cmd/golangci-lint/
flags:
- -trimpath
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
env:
- CGO_ENABLED=0
goos: goos:
- darwin - darwin
- windows - windows
@ -31,17 +32,11 @@ builds:
- 7 - 7
gomips: gomips:
- hardfloat - hardfloat
env:
- CGO_ENABLED=0
ignore: ignore:
- goos: darwin - goos: darwin
goarch: 386 goarch: 386
- goos: freebsd - goos: freebsd
goarch: arm64 goarch: arm64
main: ./cmd/golangci-lint/
flags:
- -trimpath
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
archives: archives:
- format: tar.gz - format: tar.gz
@ -76,6 +71,19 @@ changelog:
- Merge pull request - Merge pull request
- Merge branch - Merge branch
release:
github:
owner: golangci
name: golangci-lint
header: |
`golangci-lint` is a free and open-source project built by volunteers.
If you value it, consider supporting us, the [maintainers](https://github.com/golangci/golangci-lint?tab=readme-ov-file#contributors) and [linter authors](https://golangci-lint.run/product/thanks/).
We appreciate it! :heart:
For key updates, see the [changelog](https://golangci-lint.run/product/changelog/#{{ .Major }}{{ .Minor }}{{ .Patch }}).
source: source:
enabled: true enabled: true
name_template: '{{ .ProjectName }}-{{ .Version }}-source' name_template: '{{ .ProjectName }}-{{ .Version }}-source'