From 77890ae16757c106bc7d97bd54ff59a5d9fd2e6d Mon Sep 17 00:00:00 2001 From: Dmitri Lerko Date: Sun, 14 Jan 2024 21:28:20 +0000 Subject: [PATCH 1/4] Removing deprecated goreleaser field --- .goreleaser.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fbcb2ad..2599282 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -11,10 +11,13 @@ builds: - linux - darwin archives: - - replacements: - darwin: Darwin - linux: Linux - amd64: x86_64 + - file_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 -}} checksum: name_template: 'checksums.txt' snapshot: @@ -62,4 +65,4 @@ dockers: - --label=org.opencontainers.image.source=https://github.com/loveholidays/ripley - --label=org.opencontainers.image.version={{ .Version }} - --label=org.opencontainers.image.revision={{ .FullCommit }} - - --label=org.opencontainers.image.licenses=GPL-3.0 \ No newline at end of file + - --label=org.opencontainers.image.licenses=GPL-3.0 From 94fdfd9fab6b6165d17a22e0ad1ff703db35e4bf Mon Sep 17 00:00:00 2001 From: Dmitri Lerko Date: Sun, 14 Jan 2024 21:30:50 +0000 Subject: [PATCH 2/4] testing GoReleaser --- .github/workflows/goreleaser.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index 314397a..d83689a 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -2,8 +2,8 @@ name: goreleaser on: push: - tags: - - '*' + branches: + - feature/fixing-goreleaser jobs: goreleaser: @@ -32,4 +32,4 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.TOKEN_GORELEASER }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.TOKEN_GORELEASER }} From 27ac44ead745d9b755cf1a7724ec952b68599443 Mon Sep 17 00:00:00 2001 From: Dmitri Lerko Date: Sun, 14 Jan 2024 21:33:33 +0000 Subject: [PATCH 3/4] testing name_template --- .goreleaser.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 2599282..8500cd9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -11,7 +11,7 @@ builds: - linux - darwin archives: - - file_name_template: >- + - name_template: >- {{- .ProjectName }}_ {{- title .Os }}_ {{- if eq .Arch "amd64" }}x86_64 From 74dd63652b55b3432f3feb460dc7e37db4a6fe2d Mon Sep 17 00:00:00 2001 From: Dmitri Lerko Date: Sun, 14 Jan 2024 21:36:38 +0000 Subject: [PATCH 4/4] cleaning up GitHub workflow change --- .github/workflows/goreleaser.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/goreleaser.yaml b/.github/workflows/goreleaser.yaml index d83689a..0d2f9c7 100644 --- a/.github/workflows/goreleaser.yaml +++ b/.github/workflows/goreleaser.yaml @@ -2,8 +2,8 @@ name: goreleaser on: push: - branches: - - feature/fixing-goreleaser + tags: + - '*' jobs: goreleaser: