From 2a87cd97837925cb9ae747881c2f65c05a3c7da1 Mon Sep 17 00:00:00 2001 From: verse91 Date: Thu, 6 Aug 2026 13:59:54 +0700 Subject: [PATCH] fix(ci): prevent goreleaser resolving a same commit nightly tag as the current tag --- .goreleaser.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 23e2f35..520ae11 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -8,6 +8,11 @@ git: # a nightly instead of the real previous stable release ignore_tags: - "*-nightly.*" + # without this, git's default tag sort ranks a same-commit nightly tag + # above the stable tag, so goreleaser resolves the nightly as the + # "current tag" and tries to re-upload assets into its release, which + # already has them and fails with 422 already_exists + prerelease_suffix: "-nightly" builds: - env: