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:
parent
cd13f45dcb
commit
1fde2d35b9
1 changed files with 1 additions and 0 deletions
1
.github/workflows/build-arm64.yml
vendored
1
.github/workflows/build-arm64.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue