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-<commit> suffix, which was causing the
installation script to incorrectly detect available updates.
This commit is contained in:
muava12 2026-02-24 10:02:30 +08:00
parent cd13f45dcb
commit 1fde2d35b9

View file

@ -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