From 1fde2d35b9a1d999ec160dea5a67ebfa133cdcfe Mon Sep 17 00:00:00 2001 From: muava12 Date: Tue, 24 Feb 2026 10:02:30 +0800 Subject: [PATCH] fix(ci): remove snapshot suffix from goreleaser build version Modify the build-arm64 workflow to override the goreleaser snapshot version template. This ensures the built binary version exactly matches the intended fork tag (e.g., v0.1.2-fork-09) rather than appending an unwanted -SNAPSHOT- suffix, which was causing the installation script to incorrectly detect available updates. --- .github/workflows/build-arm64.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-arm64.yml b/.github/workflows/build-arm64.yml index 083f99c3f..d87716c79 100644 --- a/.github/workflows/build-arm64.yml +++ b/.github/workflows/build-arm64.yml @@ -60,6 +60,7 @@ jobs: yq -i '.builds[0].goarch = ["arm64"]' .goreleaser.yaml yq -i 'del(.builds[0].ignore)' .goreleaser.yaml yq -i 'del(.dockers_v2)' .goreleaser.yaml + yq -i '.snapshot.version_template = "{{ .Env.GORELEASER_CURRENT_TAG }}"' .goreleaser.yaml - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6