Skip to content

Commit 46e22ad

Browse files
chore: modernize goreleaser config
1 parent 80c58ff commit 46e22ad

1 file changed

Lines changed: 26 additions & 7 deletions

File tree

.goreleaser.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,37 @@ builds:
1313
- id: kairo
1414
main: ./cmd/kairo
1515
binary: kairo
16-
goos: [linux, windows, darwin]
17-
goarch: [amd64, arm64]
16+
17+
goos:
18+
- linux
19+
- windows
20+
- darwin
21+
22+
goarch:
23+
- amd64
24+
- arm64
25+
1826
flags:
1927
- -trimpath
28+
2029
mod_timestamp: "{{ .CommitTimestamp }}"
30+
2131
ldflags:
2232
- -s -w
2333
- -X main.version={{ .Version }}
24-
- -X main.commit={{ .Commit }}
34+
- -X main.commit={{ .ShortCommit }}
2535
- -X main.date={{ .CommitDate }}
2636

2737
archives:
28-
- formats: [tar.gz]
38+
- id: default
39+
formats:
40+
- tar.gz
41+
2942
format_overrides:
3043
- goos: windows
31-
formats: [zip]
44+
formats:
45+
- zip
46+
3247
name_template: >-
3348
{{ .ProjectName }}_{{ .Os }}_{{- if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}
3449
@@ -42,7 +57,7 @@ checksum:
4257
name_template: checksums.txt
4358

4459
snapshot:
45-
name_template: "{{ .Tag }}-next"
60+
version_template: "{{ incpatch .Version }}-devel"
4661

4762
changelog:
4863
use: git
@@ -54,4 +69,8 @@ changelog:
5469
- '^chore:'
5570
- README
5671
- Merge
57-
72+
73+
release:
74+
draft: false
75+
prerelease: auto
76+

0 commit comments

Comments
 (0)