Created
March 29, 2015 21:13
-
-
Save aweigold/979d30c91eab8312667c to your computer and use it in GitHub Desktop.
Deploying your gradle site output to gh-pages from travis-ci
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cp -Rvf build/resources/site gh-pages | |
cd gh-pages | |
git init | |
git config user.name "travis-ci" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "Publishing site from Travis CI build $TRAVIS_BUILD_NUMBER" | |
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1 | |
echo "Published site to gh-pages. See http://aweigold.github.io/lemming" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment