]> jfr.im git - irc/freenode/web-7.0.git/blame_incremental - deploy.sh
Merge branch 'master' of https://github.com/freenode/web-7.0.git
[irc/freenode/web-7.0.git] / deploy.sh
... / ...
CommitLineData
1#!/bin/sh
2
3if [ -z "$TRAVIS_BRANCH" ]; then exit; fi
4if [ ! "$TRAVIS_BRANCH" = master ]; then exit; fi
5
6export SSH_KEYFILE="$(readlink -f .deploy-key)"
7export GIT_SSH="$(readlink -f ssh.sh)"
8git clone -b gh-pages git@github.com:freenode/web-7.0.git .deploy || exit 1
9cd .deploy || exit 1
10git config user.name travis
11git config user.email travis@nowhere
12rm -rf *
13cp -r ../out/* .
14cp -r ../static .
15git add -A
16git commit -m "travis: $TRAVIS_COMMIT"
17git push || exit 1