From 5c4340f0d9e547c02da5ce8956f8783bcf26d0c9 Mon Sep 17 00:00:00 2001 From: Frame Date: Tue, 15 Aug 2023 15:53:35 +0800 Subject: [PATCH] CI: fix goreleaser.yaml for the deprecated replacement field (#1546) Signed-off-by: saintube --- .goreleaser.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 022fe43b3..55e55cb96 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -25,8 +25,16 @@ archives: format: binary builds: - koord-runtime-proxy - replacements: - amd64: x86_64 + # Default template: https://goreleaser.com/customization/archive/ + name_template: >- + {{ .Binary }}_ + {{ .Version }}_ + {{ .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else }}{{ .Arch }}{{ end }} + {{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_ + {{ . }}{{ end }} + {{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }} checksum: name_template: 'checksums.txt' snapshot: