]> jfr.im git - irc/freenode/web-7.0.git/blame - deploy.sh
Update 2016-02-19-the-new-policies.md
[irc/freenode/web-7.0.git] / deploy.sh
CommitLineData
abe76b1b
EK
1#!/bin/sh
2
3if [ -z "$TRAVIS_BRANCH" ]; then exit; fi
38789b11
EK
4if [ "$TRAVIS_BRANCH" != master ]; then exit; fi
5if [ "$TRAVIS_PULL_REQUEST" != false ]; then exit; fi
abe76b1b 6
17465a30
EK
7export SSH_KEYFILE="$(readlink -f .deploy-key)"
8export GIT_SSH="$(readlink -f ssh.sh)"
229d8614
EK
9git clone -b gh-pages git@github.com:freenode/web-7.0.git .deploy || exit 1
10cd .deploy || exit 1
358f0502
EK
11git config user.name travis
12git config user.email travis@nowhere
abe76b1b
EK
13rm -rf *
14cp -r ../out/* .
abe76b1b
EK
15git add -A
16git commit -m "travis: $TRAVIS_COMMIT"
229d8614 17git push || exit 1