another atempt at travis-ci

This commit is contained in:
Marius Pana 2017-01-13 20:41:52 +02:00
parent 9a15c5ba46
commit 651309c103
1 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@ install:
- pip install mkdocs-material==0.2.4
script:
- mkdocs build --clean
- git remote add gh-pages https://$GITHUB_API_KEY@github.com/spearheadsys/issue-response-docs.git
- git fetch gh-pages
after_success: |
if [ -n "$GITHUB_API_KEY" ]; then
cd "$TRAVIS_BUILD_DIR"
git branch -r
git branch -D gh-pages
mkdocs gh-deploy --remote-name https://$GITHUB_API_KEY@github.com/spearheadsys/issue-response-docs.git
mkdocs gh-deploy -v --clean --remote-name https://$GITHUB_API_KEY@github.com/spearheadsys/issue-response-docs.git
cd "$TRAVIS_BUILD_DIR"
fi