From fe78bc8a3fd399f59aa36859115de467c6b90d18 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Thu, 2 Nov 2023 18:11:36 +0100 Subject: [PATCH] fix goreleaser configuration, remove deprecated configuration usage --- .gitignore | 3 +++ .goreleaser.yml | 7 +++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 08f7896..df12014 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ ban +# goreleaser build +dist/ + # used in the CI pipeline, prevent goreleaser from seeing a clean git state golangci-lint profile.cov diff --git a/.goreleaser.yml b/.goreleaser.yml index 9ffcd0d..318086c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,3 @@ -version: 1 release: github: owner: paskal @@ -24,9 +23,9 @@ archives: - format: tar.gz name_template: >- {{- .ProjectName }}_ - {{- .Tag }}_ + {{- .Version }}_ {{- if eq .Os "darwin" }}macos - {{- else }}{{ title .Os }}{{ end }} + {{- else }}{{ .Os }}{{ end }}_ {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} @@ -55,7 +54,7 @@ nfpms: brews: - name: telegram-banhammer - tap: + repository: owner: paskal name: telegram-banhammer description: "A program which uses MTProto Telegram API to ban spammers from a group."