Skip to content

Commit

Permalink
Fix prerelease workflow (#32)
Browse files Browse the repository at this point in the history
* fix: update version extraction in Makefile to remove 'v' prefix and use tee for VERSION.md
  • Loading branch information
arrowplum authored Jan 16, 2025
1 parent 286160c commit 4592c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ clean:

OS := $(shell uname -o)
CPU := $(shell uname -m)
ver:=$(shell V=$$(git describe --tags --always); printf $${V} > ./VERSION.md; cat ./VERSION.md)
ver := $(shell git describe --tags --always | sed 's/^v//' | tee VERSION.md)
rpm_ver := $(shell echo $(ver) | sed 's/-/_/g')
$(info ver is $(ver) and rpm_ver is $(rpm_ver))
GO_LDFLAGS="-X 'asvec/cmd.Version=$(ver)' -s -w"
Expand Down

0 comments on commit 4592c84

Please sign in to comment.