Skip to content

Commit

Permalink
fix the release process
Browse files Browse the repository at this point in the history
  • Loading branch information
adejanovski committed Mar 2, 2020
1 parent 2fda55b commit 4e6725d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/before_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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}/
Expand Down

0 comments on commit 4e6725d

Please sign in to comment.