Skip to content

Commit fe745a5

Browse files
committed
Update goreleaser
1 parent ca5c290 commit fe745a5

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

goreleaser.yml

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,46 @@
1+
# goreleaser.yml
2+
# This is a GoReleaser configuration file
3+
# For documentation on all options, see https://goreleaser.com/config/
4+
5+
version: 2
6+
7+
project_name: kontext
8+
9+
before:
10+
hooks:
11+
- go mod tidy
12+
113
builds:
2-
- ldflags: -s -w -X github.com/user-cube/aws-cli-manager/v2/pkg/config.version=${GITHUB_REF#refs/tags/}
14+
- env:
15+
- CGO_ENABLED=0
16+
ldflags:
17+
- -s -w -X github.com/user-cube/aws-cli-manager/v2/cmd.Version={{ .Env.VERSION }} -X github.com/user-cube/aws-cli-manager/v2/cmd.GitCommit={{ .Env.GIT_COMMIT }} -X github.com/user-cube/aws-cli-manager/v2/cmd.BuildDate={{ .Env.BUILD_DATE }}
318
goos:
419
- linux
520
- darwin
6-
- windows
721
goarch:
822
- amd64
923
- arm64
10-
- 386
24+
25+
archives:
26+
- format: tar.gz
27+
name_template: >-
28+
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}
29+
files:
30+
- README.md
31+
- LICENSE
32+
33+
checksum:
34+
name_template: 'checksums.txt'
35+
36+
snapshot:
37+
name_template: "{{ incpatch .Version }}-next"
38+
39+
changelog:
40+
sort: asc
41+
filters:
42+
exclude:
43+
- '^docs:'
44+
- '^test:'
45+
- '^ci:'
46+
- '^chore:'

0 commit comments

Comments
 (0)