From b481d62d3d98cea2fec9ebb85e8796472440f7e8 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 6 Sep 2016 00:26:45 -0700 Subject: [PATCH] block invalid publish [skip ci] --- scripts/publish_release.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/publish_release.sh b/scripts/publish_release.sh index 1f2428a66..fb79e0c41 100755 --- a/scripts/publish_release.sh +++ b/scripts/publish_release.sh @@ -6,6 +6,13 @@ set -o pipefail # for normal release leave empty # for release candidate, add "-rcN" export MAPNIK_VERSION=$(git describe) +if [[ $(git tag -l) =~ $MAPNIK_VERSION ]]; then echo yes; + echo "Success: found $MAPNIK_VERSION (result of git describe) in tags, continuing" +else + echo "error: $MAPNIK_VERSION (result of git describe) not in "git tag -l" output, aborting" + echo "You must create a valid annotated tag first, before running this ./scripts/publish_release.sh" + exit 1 +fi export TARBALL_NAME="mapnik-${MAPNIK_VERSION}" cd /tmp/ rm -rf ${TARBALL_NAME}