Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Change release version bump to handle releases other than latest (hyp…
Browse files Browse the repository at this point in the history
…erledger-archives#4327)

Signed-off-by: Mark S. Lewis <mark_lewis@uk.ibm.com>
  • Loading branch information
bestbeforetoday committed Aug 13, 2018
1 parent e8990b2 commit 4681cf3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis/deploy.sh
Expand Up @@ -180,11 +180,13 @@ fi

## Stable releases only: clean up git, and bump version number
if [[ "${BUILD_RELEASE}" = "stable" ]]; then
[ "${BUILD_FOCUS}" = 'latest' ] && GIT_BRANCH='master' || GIT_BRANCH="${BUILD_FOCUS}.x"
echo "Running version bump on Git branch: ${GIT_BRANCH}"

# Configure the Git repository and clean any untracked and unignored build files.
git config user.name "${GH_USER_NAME}"
git config user.email "${GH_USER_EMAIL}"
git checkout -b master
git checkout -b "${GIT_BRANCH}"
git reset --hard
git clean -d -f

Expand All @@ -195,7 +197,7 @@ if [[ "${BUILD_RELEASE}" = "stable" ]]; then
# Add the version number changes and push them to Git.
git add .
git commit -m "Automatic version bump to ${NEW_VERSION}"
git push origin master
git push origin "${GIT_BRANCH}"

fi

Expand Down

0 comments on commit 4681cf3

Please sign in to comment.