diff --git a/Makefile b/Makefile index ad7dfedcf..e1e035cb0 100644 --- a/Makefile +++ b/Makefile @@ -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) diff --git a/scripts/release/release.sh b/scripts/release/release.sh index a4547b015..053f16835 100755 --- a/scripts/release/release.sh +++ b/scripts/release/release.sh @@ -38,6 +38,7 @@ where flags can be one of: -r=, --release= - release number, like 0.7.0 (REQUIRED) --cleanup - clean up before releasing; it can remove your local changes -C= - path to local Tenderdash repository + -s, --sign - generate signed binaries -h, --help - display this help message ## Examples @@ -95,6 +96,10 @@ function parseArgs { shift exit 0 ;; + -s | --sign) + SIGN=1 + shift 1 + ;; *) error "Unrecoginzed command line argument '${arg}'; try '$0 --help'" ;; @@ -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