Skip to content

Commit

Permalink
fix: build of dev releases fails due to invalid tags (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek authored Aug 5, 2024
1 parent 859482a commit 0a9bd64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
OUTPUT ?= build/tenderdash
BUILDDIR ?= $(CURDIR)/build
REPO_NAME ?= github.com/dashevo/tenderdash
BUILD_TAGS ?= tenderdash,netgo,osusergo
BUILD_TAGS ?= tenderdash netgo osusergo
# If building a release, please checkout the version tag to get the correct version setting
ifneq ($(shell git symbolic-ref -q --short HEAD),)
VERSION := unreleased-$(shell git symbolic-ref -q --short HEAD)-$(shell git rev-parse HEAD)
Expand Down
9 changes: 8 additions & 1 deletion scripts/release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ where flags can be one of:
-r=<x.y.z-dev.n>, --release=<x.y.z-dev.n> - release number, like 0.7.0 (REQUIRED)
--cleanup - clean up before releasing; it can remove your local changes
-C=<path> - path to local Tenderdash repository
-s, --sign - generate signed binaries
-h, --help - display this help message
## Examples
Expand Down Expand Up @@ -95,6 +96,10 @@ function parseArgs {
shift
exit 0
;;
-s | --sign)
SIGN=1
shift 1
;;
*)
error "Unrecoginzed command line argument '${arg}'; try '$0 --help'"
;;
Expand Down Expand Up @@ -406,4 +411,6 @@ sleep 5 # wait for the release to be finalized
success "Release ${NEW_PACKAGE_VERSION} created successfully."
success "Accept it at: $(getReleaseUrl)"

buildAndUploadArtifacts
if [ -n "${SIGN}" ];then
buildAndUploadArtifacts
fi

0 comments on commit 0a9bd64

Please sign in to comment.