Skip to content

Commit

Permalink
after every successful build publish a snapshot release try five 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamz-22 committed Dec 20, 2017
1 parent 063786a commit 4ec77ee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions publish/publish-patch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,9 @@ set -e

main() {

CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

echo "Current Branch Version : ${CURRENT_BRANCH}"

echo "Current Branch Version with travis : ${TRAVIS_BRANCH}"

if [ ${TRAVIS_BRANCH} != "master" ]; then
git checkout ${CURRENT_BRANCH}

./gradlew clean build -PSONATYPE_USERNAME=${SONATYPE_USERNAME} -PSONATYPE_PASSWORD=${SONATYPE_PASSWORD}

Expand Down
7 changes: 0 additions & 7 deletions publish/publish-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@ set -e

main() {


CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)

echo "Current Branch Version : ${CURRENT_BRANCH}"

echo "Current Branch Version with travis : ${TRAVIS_BRANCH}"

if [ ${TRAVIS_BRANCH} != "master" ]; then

git checkout ${CURRENT_BRANCH}

./gradlew clean build -PVERSIONING_RELEASE_BUILD=true -PVERSIONING_RELEASE_MODE=tag -PVERSIONING_DISPLAY_MODE=base -PSONATYPE_USERNAME=${SONATYPE_USERNAME} -PSONATYPE_PASSWORD=${SONATYPE_PASSWORD}

./gradlew versionFile -PVERSIONING_RELEASE_BUILD=true -PVERSIONING_RELEASE_MODE=tag -PVERSIONING_DISPLAY_MODE=base -PSONATYPE_USERNAME=${SONATYPE_USERNAME} -PSONATYPE_PASSWORD=${SONATYPE_PASSWORD}
Expand Down

0 comments on commit 4ec77ee

Please sign in to comment.