Skip to content

Commit 2ab1450

Browse files
committed
ci: Fix archive for mac
1 parent 987d2c9 commit 2ab1450

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/.goreleaser.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ builds:
1717

1818
# https://goreleaser.com/customization/archive
1919
archives:
20-
- id: archives
21-
ids: [linix-windows, darwin]
20+
- id: linux-windows
21+
ids: [linix-windows]
2222
formats: [tar.gz]
2323
# this name template makes the OS and Arch compatible with the results of `uname`.
2424
name_template: >-
@@ -37,6 +37,20 @@ archives:
3737
format_overrides:
3838
- goos: windows
3939
formats: [zip]
40+
- id: darwin
41+
ids: [darwin]
42+
formats: [tar.gz]
43+
# this name template makes the OS and Arch compatible with the results of `uname`.
44+
name_template: >-
45+
{{ .ProjectName }}_
46+
{{- title .Os }}_
47+
{{- if eq .Arch "amd64" }}x86_64
48+
{{- else }}{{ .Arch }}{{ end }}
49+
{{- if .Arm }}v{{ .Arm }}{{ end }}
50+
files:
51+
- LICENSE
52+
- CHANGELOG.md
53+
- README.md
4054

4155
# https://goreleaser.com/customization/checksum
4256
checksum:
@@ -88,4 +102,4 @@ signs:
88102

89103
# https://goreleaser.com/customization/release
90104
release:
91-
ids: [archives, cosign-checksum]
105+
ids: [linux-windows, darwin, cosign-checksum]

0 commit comments

Comments
 (0)