From 13f7b54b45d5b6fb8132fd6f654d498a4638fb7a Mon Sep 17 00:00:00 2001 From: laser Date: Thu, 13 Jun 2019 17:08:14 -0700 Subject: [PATCH] feat(let circle CI config control which branches are built) --- scripts/publish-release.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/publish-release.sh b/scripts/publish-release.sh index ef4cbfb..e89142d 100755 --- a/scripts/publish-release.sh +++ b/scripts/publish-release.sh @@ -1,16 +1,11 @@ #!/usr/bin/env bash -RELEASE_BRANCH="master" +set -Eeuo pipefail + RELEASE_NAME="$CIRCLE_PROJECT_REPONAME-`uname`" RELEASE_FILE="/tmp/$RELEASE_NAME.tar.gz" RELEASE_TAG="${CIRCLE_SHA1:0:16}" -# make sure we're on the sanctioned branch -if [ "$CIRCLE_BRANCH" != "$RELEASE_BRANCH" ]; then - echo "not on branch \"$RELEASE_BRANCH\", skipping publish" - exit 0 -fi - # make sure we have a token set, api requests won't work otherwise if [ -z $GITHUB_TOKEN ]; then echo "\$GITHUB_TOKEN not set, publish failed"