New attempt at having Travis push to gh-pages

This commit is contained in:
Alexandre Archambault 2015-06-18 03:05:38 +02:00
parent 524ed3320b
commit 9186dff21c
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
if [ "$1" = "clone" ]; then
git clone "https://alexarchambault:${GH_TOKEN}@github.com/alexarchambault/coursier.git" -b gh-pages coursier-gh-pages >/dev/null 2>&1
git clone "https://${GH_TOKEN}@github.com/alexarchambault/coursier.git" -b gh-pages coursier-gh-pages >/dev/null 2>&1
else
git push origin gh-pages >/dev/null 2>&1
fi

View File

@ -49,4 +49,4 @@ fi
sbt ++${TRAVIS_SCALA_VERSION} $SBT_COMMANDS
[ "$PUSH_GHPAGES" = 0 ] || "$(dirname "$0")/push-gh-pages.sh"
[ "$PUSH_GHPAGES" = 0 ] || "$(dirname "$0")/push-gh-pages.sh" "$TRAVIS_SCALA_VERSION"