From 46a0e052501588a3bb76481fe4a672b85bd3c62f Mon Sep 17 00:00:00 2001 From: Rahmat Hidayat Date: Tue, 15 Aug 2023 15:23:54 +0700 Subject: [PATCH] fix: fix goreleaser action (#59) * chore: user goreleaser v1.18.2 * chore: fix release pipeline --- .goreleaser.yaml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 8a9199ac8..34529c763 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -20,12 +20,16 @@ builds: env: - CGO_ENABLED=0 archives: - - replacements: - darwin: macos - linux: linux - windows: windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{- .ProjectName }}_ + {{- .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else if eq .Arch "linux" }}linux + {{- else if eq .Arch "windows" }}windows + {{- else if eq .Arch "darwin" }}macos + {{- else }}{{ .Arch }}{{ end }} format_overrides: - goos: windows format: zip @@ -58,8 +62,10 @@ nfpms: formats: - deb - rpm - replacements: - darwin: macOS + file_name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "darwin" }}macos{{- else }}{{ .Arch }}{{ end }} scoop: bucket: owner: goto