From 14ea53356140076c4e1b427df775088c510f958b Mon Sep 17 00:00:00 2001 From: Yusuf Syaifudin Date: Mon, 8 Feb 2021 16:38:57 +0700 Subject: [PATCH] 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. --- .goreleaser.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index e58be76..417fb9b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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