mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-19 11:27:45 +08:00
Encrypt token for target repo
This commit is contained in:
+1
-1
@@ -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:
|
||||
|
||||
@@ -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 --"
|
||||
|
||||
Reference in New Issue
Block a user