From 4f82c63205c8fff4a3a76bb368ba6d6e5665decf Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Wed, 12 Oct 2016 09:53:32 +0200 Subject: [PATCH] Only build and publish for tags --- publish.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/publish.sh b/publish.sh index a3461c0..027bcd2 100755 --- a/publish.sh +++ b/publish.sh @@ -6,6 +6,11 @@ ARCHS="linux/386 linux/amd64 linux/arm darwin/amd64 darwin/386" set -e +if [ -z "${TRAVIS_TAG}" ]; then + echo "Not executing for non tag, but this is no failure." + exit 0 +fi + if [ -z "${VERSION}" ]; then echo "No tag present, stopping build now." exit 0