Verified Commit 1ee034e9 authored by Jake Howard's avatar Jake Howard
Browse files

Add deploy script

parent d7630ee2
#!/usr/bin/env bash
if [ "${CIRCLE_BRANCH}" != "master" ]; then
echo "Only master branch can be deployed"
exit 0
set -e
git config --global push.default simple
git config --global $(git --no-pager show -s --format='%ae' HEAD)
git config --global $CIRCLE_USERNAME
git clone -q --branch=gh-pages $CIRCLE_REPOSITORY_URL $DEPLOY_DIR
rm -rf *
cp ../build/* . -r
git add -f .
git commit -m "Deploy build $CIRCLE_BUILD_NUM [ci skip]" || true
git push -fs
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment