Skip to content

Commit b519472

Browse files
fix deploy script
1 parent 71c6881 commit b519472

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.travis/deploy.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,14 @@ if [ ! -z "$TRAVIS_TAG" ]
4949
then
5050
increment_version_to_next_snapshot $TRAVIS_TAG
5151
echo "on a tag -> set pom.xml <version> to next SNAPSHOT $new_snapshot"
52+
git checkout master
5253
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:set -DnewVersion=$new_snapshot
5354
mvn --settings .travis/mvnsettings.xml org.codehaus.mojo:versions-maven-plugin:2.3:commit
5455
# Save some useful information
5556
REPO=`git config remote.origin.url`
5657
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
57-
git clone $REPO out
58-
# Clean out existing contents
59-
cd out
6058
git config user.name "Travis CI"
6159
git config user.email "[email protected]"
62-
yes | cp -f ../pom.xml pom.xml
6360
git add pom.xml
6461
git commit -m "[Travis-CI] next snapshot version"
6562

@@ -70,5 +67,5 @@ then
7067
ssh-add .travis/deploy_key
7168

7269
# Now that we're all set up, we can push.
73-
git push $SSH_REPO $TARGET_BRANCH
70+
git push $SSH_REPO master
7471
fi

.travis/deploy_key.enc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)