Skip to content

Commit

Permalink
Merge branch 'master' into master-dist
Browse files Browse the repository at this point in the history
  • Loading branch information
patternfly-build committed Aug 16, 2016
2 parents 6ddcfab + 491fbd7 commit 8418511
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ git add dist --force
git commit -m "Added files generated by Travis build"

# Push to dist branch
git push upstream $TRAVIS_BRANCH:$TRAVIS_BRANCH-dist --force -v
EXISTING=`git ls-remote --heads https://github.com/"$TRAVIS_REPO_SLUG".git "$TRAVIS_BRANCH"-dist`

if [ -n "$EXISTING" ]
then
git fetch upstream $TRAVIS_BRANCH-dist:$TRAVIS_BRANCH-dist
git checkout $TRAVIS_BRANCH-dist
git merge -Xtheirs $TRAVIS_BRANCH --no-edit --ff
git push upstream $TRAVIS_BRANCH-dist --force -v
else
git push upstream $TRAVIS_BRANCH:$TRAVIS_BRANCH-dist --force -v
fi

exit $?

0 comments on commit 8418511

Please sign in to comment.