From 838ea606051701d64a291b8e9cf621dbc545b8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krupa?= Date: Fri, 4 Jan 2019 14:25:08 +0100 Subject: do not publish artifacts on RC tags (#5114) --- .travis/releaser.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.travis') diff --git a/.travis/releaser.sh b/.travis/releaser.sh index 45e8b362e2..937cbeb1f1 100755 --- a/.travis/releaser.sh +++ b/.travis/releaser.sh @@ -56,6 +56,11 @@ git tag "$GIT_TAG" -a -m "Automatic tag generation for travis build no. $TRAVIS_ git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')" --tags +if [ -z ${RC+x} ]; then + echo "This is a release candidate tag, exiting without artifact building" + exit 0 +fi + echo "---- CREATING TAGGED DOCKER CONTAINERS ----" export REPOSITORY="netdata/netdata" ./packaging/docker/build.sh @@ -79,6 +84,4 @@ if [ "${GIT_TAG}" != "$(git tag --points-at)" ]; then echo "ERROR! Current commit is not tagged. Stopping release creation." exit 1 fi -if [ ! -z ${RC+x} ]; then - hub release create --draft -a "netdata-${GIT_TAG}.tar.gz" -a "netdata-${GIT_TAG}.gz.run" -a "sha256sums.txt" -m "${GIT_TAG}" "${GIT_TAG}" -fi +hub release create --draft -a "netdata-${GIT_TAG}.tar.gz" -a "netdata-${GIT_TAG}.gz.run" -a "sha256sums.txt" -m "${GIT_TAG}" "${GIT_TAG}" -- cgit v1.2.3