From 8bac0ccc1a819f747526ca87764a81d69cdd6881 Mon Sep 17 00:00:00 2001 From: Jarno Rankinen Date: Fri, 8 Mar 2024 00:16:56 +0200 Subject: [PATCH] Automatic build action, take 8 --- .goreleaser.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9df5411..1257518 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -2,10 +2,6 @@ version: 1 before: hooks: - # You may remove this if you don't use go modules. - - go mod tidy - # you may remove this if you don't need go generate - - go generate ./... builds: - env: @@ -18,19 +14,14 @@ builds: - arm archives: - - format: tar.gz - # this name template makes the OS and Arch compatible with the results of `uname`. + - format: binary name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ + {{ .ProjectName }}- + {{- .Os }}- {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} - # use zip for windows archives - format_overrides: - - goos: windows - format: zip changelog: sort: asc