Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 532 Bytes
#!/bin/bash
#########################
## Adapted from https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
#########################
set -e # exit with nonzero exit code if anything fails
# Move to build folder and init it
cd .www
git init
# Configure Git
git config user.name "CircleCI"
git config user.email "sam@snug.ug"
# Commit all the things into the repo
git add .
git commit -m ":shipit: Deploy to GitHub Pages"
# Force push to gh-pages
git push --force "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1