Skip to content

Commit 14ea533

Browse files
You won't be able to package multiple builds in a single archive either. The alternative is to declare multiple archives filtering by build ID.
1 parent c84213f commit 14ea533

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.goreleaser.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,21 @@ builds:
2323
- windows
2424
- darwin
2525
archives:
26-
- builds: # Builds reference which build instances should be archived in this archive.
26+
- id: "archive-example-oauth-authc"
27+
name_template: "authc_{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
28+
builds: # Builds reference which build instances should be archived in this archive.
2729
- "example-oauth-authc"
30+
replacements:
31+
darwin: Darwin
32+
linux: Linux
33+
windows: Windows
34+
386: i386
35+
amd64: x86_64
36+
allow_different_binary_count: true
37+
- id: "archive-example-oauth-fe"
38+
name_template: "fe_{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
39+
builds: # Builds reference which build instances should be archived in this archive.
2840
- "example-oauth-fe"
29-
format: binary
30-
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3141
replacements:
3242
darwin: Darwin
3343
linux: Linux

0 commit comments

Comments
 (0)