diff --git a/.travis.yml b/.travis.yml index 9ca00ab..3d9a67b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file diff --git a/Makefile b/Makefile index bc6f24d..78efd7e 100644 --- a/Makefile +++ b/Makefile @@ -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 \ No newline at end of file