From c5b885efbbdc20561c82a6177f63302ff2ff5d0b Mon Sep 17 00:00:00 2001 From: Mladen Jablanovic Date: Wed, 12 Jun 2024 12:46:02 +0200 Subject: [PATCH] build(go): Update goreleaser config file --- .gitignore | 1 + clients/go/.goreleaser.yaml | 28 +++++++++++++++++++--------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index dfc291c3..d199e008 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ clients/go/ +!clients/go/.goreleaser.yaml clients/python/* !clients/python/test/test_locales_api.py diff --git a/clients/go/.goreleaser.yaml b/clients/go/.goreleaser.yaml index 0906b457..2ec480da 100644 --- a/clients/go/.goreleaser.yaml +++ b/clients/go/.goreleaser.yaml @@ -1,4 +1,7 @@ -# Make sure to check the documentation at http://goreleaser.com +# Make sure to check the documentation at https://goreleaser.com + +version: 2 + before: hooks: # You may remove this if you don't use go modules. @@ -6,19 +9,26 @@ before: builds: - skip: true archives: -- name_template: >- - {{ .ProjectName }}_ - {{- title .Os }}_ - {{- if eq .Arch "amd64" }}x86_64 - {{- else if eq .Arch "386" }}i386 - {{- else }}{{ .Arch }}{{ end }} - {{- if .Arm }}v{{ .Arm }}{{ end }} + - format: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .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 + checksum: name_template: 'checksums.txt' snapshot: name_template: "{{ .Tag }}" changelog: - skip: true + disable: true release: github: owner: phrase