another atempt at travis-ci
This commit is contained in:
parent
9a15c5ba46
commit
651309c103
@ -8,11 +8,11 @@ install:
|
|||||||
- pip install mkdocs-material==0.2.4
|
- pip install mkdocs-material==0.2.4
|
||||||
script:
|
script:
|
||||||
- mkdocs build --clean
|
- 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: |
|
after_success: |
|
||||||
if [ -n "$GITHUB_API_KEY" ]; then
|
if [ -n "$GITHUB_API_KEY" ]; then
|
||||||
cd "$TRAVIS_BUILD_DIR"
|
cd "$TRAVIS_BUILD_DIR"
|
||||||
git branch -r
|
mkdocs gh-deploy -v --clean --remote-name https://$GITHUB_API_KEY@github.com/spearheadsys/issue-response-docs.git
|
||||||
git branch -D gh-pages
|
|
||||||
mkdocs gh-deploy --remote-name https://$GITHUB_API_KEY@github.com/spearheadsys/issue-response-docs.git
|
|
||||||
cd "$TRAVIS_BUILD_DIR"
|
cd "$TRAVIS_BUILD_DIR"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user