diff --git a/.travis.yml b/.travis.yml index 8844eda4..8553368e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ python: # command to install dependencies install: - "pip install mkdocs" +secure: "TrPdzgDDelezvEch5VmGkn0gu7E/4imfdae85qr7pPvk4jwdYtBI918+fgMkT8oowEfrd14M39dttpVrp8Fjns+QsWoy742F/N8bc+HiEDzKNnc2KJgA5AF5KysdDeQthDEn8egeOlzLjMY7L/JPj67Ene8fik1IdkpFpMwNnf8=" # command to run tests before_script: "mkdocs build --clean" script: diff --git a/push-ghpages.sh b/push-ghpages.sh index cd293df2..1e678c62 100644 --- a/push-ghpages.sh +++ b/push-ghpages.sh @@ -1,2 +1,17 @@ #!/bin/bash -echo Testing \ No newline at end of file +echo Starting push to gh-pages... +mkdir deploy +cd deploy + +git config --global user.email "johnny@johnnycrazy.de" +git config --global user.name "Travis-CI" +git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/JohnnyCrazy/SpotifyAPI-NET gh-pages > /dev/null + +cd gh-pages +git rm -rf ./ +cp -Rf ../../site ./ +git add -f . +git commit -m "Automatic built mkdocs | $TRAVIS_BUILD_NUMBER pushed" +git push -fq origin gh-pages > /dev/null + +echo -e "Done" \ No newline at end of file