X-Git-Url: https://jfr.im/git/irc/freenode/web-7.0.git/blobdiff_plain/17465a301178a98190245750e2b32922369e1e6b..81cae952d943334ac129616a3b604cb1a35a6857:/deploy.sh diff --git a/deploy.sh b/deploy.sh index 6f56c0256..e35bdcf52 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,15 +1,17 @@ #!/bin/sh if [ -z "$TRAVIS_BRANCH" ]; then exit; fi -if [ ! "$TRAVIS_BRANCH" = master ]; then exit; fi +if [ "$TRAVIS_BRANCH" != master ]; then exit; fi +if [ "$TRAVIS_PULL_REQUEST" != false ]; then exit; fi export SSH_KEYFILE="$(readlink -f .deploy-key)" export GIT_SSH="$(readlink -f ssh.sh)" -git clone -b gh-pages git@github.com:freenode/web-7.0.git .deploy -cd .deploy +git clone -b gh-pages git@github.com:freenode/web-7.0.git .deploy || exit 1 +cd .deploy || exit 1 +git config user.name travis +git config user.email travis@nowhere rm -rf * cp -r ../out/* . -cp -r ../static . git add -A git commit -m "travis: $TRAVIS_COMMIT" -git push +git push || exit 1