Skip to content

Commit 57eea24

Browse files
committed
ci: Fix goreleaser config for universal binary
1 parent db4ebc5 commit 57eea24

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.goreleaser.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,23 @@ builds:
4242
- "{{ .Env.GO_BUILD_LDFLAGS }}"
4343
-
4444
universal_binaries:
45-
- id: cli
45+
-
46+
# ID of the source build
47+
#
48+
# Defaults to the project name.
49+
id: cli
50+
51+
# Universal binary name template.
52+
#
53+
# You will want to change this if you have multiple builds!
54+
#
55+
# Defaults to '{{ .ProjectName }}'
56+
name_template: 'aoc-cli'
57+
58+
# Whether to remove the previous single-arch binaries from the artifact list.
59+
# If left as false, your end release might have both several macOS archives: amd64, arm64 and all.
60+
#
61+
# Defaults to false.
4662
replace: true
4763

4864
archives:

0 commit comments

Comments
 (0)