Change mkdocs deploy method

pull/316/head
8ear 2019-07-31 08:53:16 +02:00
parent 5783a769c5
commit 680b5ed8e3
No known key found for this signature in database
GPG Key ID: 00AAF736693E6C4E
2 changed files with 12 additions and 3 deletions

View File

@ -31,9 +31,18 @@ script:
- pipenv run nosetests --with-coverage --cover-package=misp_modules
- kill -s KILL $pid
- pipenv run flake8 --ignore=E501,W503 misp_modules
# MKDOCS
- make ci_generate_docs
after_success:
- pipenv run coverage combine .coverage*
- pipenv run codecov
# MKDOCS
- make ci_generate_docs
deploy:
provider: pages
local-dir: site
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
on:
branch: master

View File

@ -13,7 +13,7 @@ generate_docs: prepare_docs
docker run --rm -it -v $(PWD):/docs squidfunk/mkdocs-material build
ci_generate_docs: prepare_docs
mkdocs gh-deploy
mkdocs build
test_docs: prepare_docs
docker run --rm -it -p 8000:8000 -v $(PWD):/docs squidfunk/mkdocs-material