From 4e6725d0ffcda62bcfda267c109a7c41dc707fda Mon Sep 17 00:00:00 2001 From: Alexander Dejanovski Date: Mon, 2 Mar 2020 08:45:41 +0100 Subject: [PATCH] fix the release process --- .github/scripts/before_deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/before_deploy.sh b/.github/scripts/before_deploy.sh index 144253900..5ac31c18d 100755 --- a/.github/scripts/before_deploy.sh +++ b/.github/scripts/before_deploy.sh @@ -19,7 +19,7 @@ set -xe mkdir -p src/packages export VERSION=$(printf 'VER\t${project.version}' | mvn help:evaluate | grep '^VER' | cut -f2) -if [ "${GITHUB_REF}" = "refs/heads/alex/gh-actions2" ] +if [ "${GITHUB_REF}" = "refs/heads/master" ] then mkdir -p cassandra-reaper-master/server/target cp -R src/packaging/bin cassandra-reaper-master/ @@ -44,7 +44,7 @@ then docker tag cassandra-reaper:latest $REPO:$GIT_HASH #docker push $REPO:$GIT_HASH fi -if [[ ${GITHUB_REF} =~ ^[0-9]{1}\.[0-9]{1}\.[0-9]{1}$ ]] +if [[ ${GITHUB_REF} == "refs/tags"* ]] then mkdir -p cassandra-reaper-${VERSION}/server/target cp -R src/packaging/bin cassandra-reaper-${VERSION}/