Skip to content

dev: improve goreleaser configuration #4660

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 19 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
project_name: golangci-lint

release:
github:
owner: golangci
name: golangci-lint

builds:
- 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:
- darwin
- windows
Expand All @@ -31,17 +32,11 @@ builds:
- 7
gomips:
- hardfloat
env:
- CGO_ENABLED=0
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: arm64
main: ./cmd/golangci-lint/
flags:
- -trimpath
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}

archives:
- format: tar.gz
Expand Down Expand Up @@ -76,6 +71,19 @@ changelog:
- Merge pull request
- 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:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Version }}-source'
Expand Down
Loading