Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 423 Bytes
#!/bin/sh
set -e
[ -z "${GITHUB_PAT}" ] && exit 0
[ "${TRAVIS_BRANCH}" != "master" ] && exit 0
git config --global user.email "jtrecenti@jtrecenti.com"
git config --global user.name "jtrecenti"
git clone -b gh-pages https://${GITHUB_PAT}@github.com/${TRAVIS_REPO_SLUG}.git curso-output
cd curso-output
git rm -rf .
cp -r ../public/* ./
git add --all *
git commit -m "Update curso-r" || true
git push -q origin gh-pages