Encrypt token for target repo

This commit is contained in:
Steven Silvester
2015-09-18 21:28:49 -05:00
parent 67b89e6e6d
commit e1c57be1c4
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ addons:
env:
global:
- GH_REF: github.com/scikit-image/docs.git
- secure: "k646ELF4CfE/S5F1dVeAn8XXdqqWdrHNgTOlZhW9BiC+nLiHU8ADlh+hKlibUWXuT0e1mv9utEkRNwj+MLZ3nSnqXoyLzQaRR2Nd8ldaclhQOIi0QOcsae9oFtCfsFosF40tjEXEmXsh2W81g557y81yEzk7RjE4PpWNnPJe8qM="
- secure: "ba3xugaHqtd76pnq5kmjtlqGXpzqcE0JvDrBg0mkIuDWvaLBlaTpOud89KK0FNf1ZbMuwkIEyERdrzp24xj03Fyw+FlL4Th/LjlcoxUuMjatuxNq2sBOpUBYYJLef4Trfis+pTcyf8BjMBWdK0rouxBKwZl1QGn9ToDJ9Iu0FCY="
notifications:
webhooks:
+3 -2
View File
@@ -1,5 +1,6 @@
#!/bin/bash
if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PYTHON_VERSION == 3.4 ]]
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == "master" &&
$TRAVIS_PYTHON_VERSION == 3.4 ]]
then
# See https://help.github.com/articles/creating-an-access-token-for-command-line-use/ for how to generate a token
# See http://docs.travis-ci.com/user/encryption-keys/ for how to generate
@@ -17,7 +18,7 @@ then
git add dev
git commit -m "Deployed to GitHub Pages"
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" gh-pages
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" gh-pages > /dev/null 2>&1
)
else
echo "-- will only push docs from master --"