From fadfafe02a40d5eb1030bd0590052e8ac58bb8cc Mon Sep 17 00:00:00 2001 From: M Atif Ali Date: Wed, 19 Feb 2025 14:52:07 +0500 Subject: [PATCH 1/3] chore: test auto prerelease This configures goreleaser to automate prereleases when we push a tag that contains `pre` or `rc` --- .goreleaser.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 69029533..7f9941f7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -56,6 +56,8 @@ release: name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json' # If you want to manually examine the release before its live, uncomment this line: # draft: true + prerelease: auto + make_latest: "{{ not .Prerelease }}" changelog: # see https://goreleaser.com/customization/changelog/ use: github-native From 34d7322856ac6f0d4a7fb9d569ae562c1b30fa46 Mon Sep 17 00:00:00 2001 From: M Atif Ali Date: Wed, 19 Feb 2025 16:42:47 +0500 Subject: [PATCH 2/3] review suggestions --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7f9941f7..39e985ea 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -57,7 +57,7 @@ release: # If you want to manually examine the release before its live, uncomment this line: # draft: true prerelease: auto - make_latest: "{{ not .Prerelease }}" + make_latest: {{ eq (.Prerelease | len) 0 }} changelog: # see https://goreleaser.com/customization/changelog/ use: github-native From 22102024615a3d7026aa4765e47ab8792db29c7e Mon Sep 17 00:00:00 2001 From: M Atif Ali Date: Wed, 19 Feb 2025 17:54:56 +0500 Subject: [PATCH 3/3] Simplify make_latest condition in .goreleaser.yml --- .goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 39e985ea..31a6b24c 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -57,7 +57,7 @@ release: # If you want to manually examine the release before its live, uncomment this line: # draft: true prerelease: auto - make_latest: {{ eq (.Prerelease | len) 0 }} + make_latest: {{ not .Prerelease }} changelog: # see https://goreleaser.com/customization/changelog/ use: github-native