Skip to content

Commit a660182

Browse files
authored
dev: improve goreleaser configuration (#4660)
1 parent d681d93 commit a660182

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.goreleaser.yml

+19-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22
project_name: golangci-lint
33

4-
release:
5-
github:
6-
owner: golangci
7-
name: golangci-lint
8-
94
builds:
105
- binary: golangci-lint
6+
main: ./cmd/golangci-lint/
7+
flags:
8+
- -trimpath
9+
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
10+
env:
11+
- CGO_ENABLED=0
1112
goos:
1213
- darwin
1314
- windows
@@ -31,17 +32,11 @@ builds:
3132
- 7
3233
gomips:
3334
- hardfloat
34-
env:
35-
- CGO_ENABLED=0
3635
ignore:
3736
- goos: darwin
3837
goarch: 386
3938
- goos: freebsd
4039
goarch: arm64
41-
main: ./cmd/golangci-lint/
42-
flags:
43-
- -trimpath
44-
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
4540

4641
archives:
4742
- format: tar.gz
@@ -76,6 +71,19 @@ changelog:
7671
- Merge pull request
7772
- Merge branch
7873

74+
release:
75+
github:
76+
owner: golangci
77+
name: golangci-lint
78+
header: |
79+
`golangci-lint` is a free and open-source project built by volunteers.
80+
81+
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/).
82+
83+
We appreciate it! :heart:
84+
85+
For key updates, see the [changelog](https://golangci-lint.run/product/changelog/#{{ .Major }}{{ .Minor }}{{ .Patch }}).
86+
7987
source:
8088
enabled: true
8189
name_template: '{{ .ProjectName }}-{{ .Version }}-source'

0 commit comments

Comments
 (0)