Skip to content

Commit

Permalink
You won't be able to package multiple builds in a single archive eith…
Browse files Browse the repository at this point in the history
…er. The alternative is to declare multiple archives filtering by build ID.
  • Loading branch information
yusufsyaifudin committed Feb 8, 2021
1 parent c84213f commit 14ea533
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,21 @@ builds:
- windows
- darwin
archives:
- builds: # Builds reference which build instances should be archived in this archive.
- id: "archive-example-oauth-authc"
name_template: "authc_{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds: # Builds reference which build instances should be archived in this archive.
- "example-oauth-authc"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
allow_different_binary_count: true
- id: "archive-example-oauth-fe"
name_template: "fe_{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds: # Builds reference which build instances should be archived in this archive.
- "example-oauth-fe"
format: binary
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
Expand Down

0 comments on commit 14ea533

Please sign in to comment.