From 60cee97ffa176f6a98796d0ba3ce2ad1751b4853 Mon Sep 17 00:00:00 2001 From: elliotxx <951376975@qq.com> Date: Wed, 26 Jul 2023 19:41:48 +0800 Subject: [PATCH] :green_heart: fix: wrong .goreleaser config --- .goreleaser.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 858f0d0..39b1c6e 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,12 +25,13 @@ builds: # goarch: arm64 main: ./cmd/mdfmt archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - id: foo + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} checksum: name_template: 'checksums.txt' snapshot: @@ -106,4 +107,4 @@ brews: license: "MIT" skip_upload: false test: | - system "#{bin}/mdfmt -V" \ No newline at end of file + system "#{bin}/mdfmt -V"