Skip to content

Instantly share code, notes, and snippets.

@aweigold
Created March 29, 2015 21:13
Show Gist options
  • Save aweigold/979d30c91eab8312667c to your computer and use it in GitHub Desktop.
Save aweigold/979d30c91eab8312667c to your computer and use it in GitHub Desktop.
Deploying your gradle site output to gh-pages from travis-ci
#!/bin/bash
cp -Rvf build/resources/site gh-pages
cd gh-pages
git init
git config user.name "travis-ci"
git config user.email "travis@travis-ci.org"
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