Change mkdocs deploy method

pull/316/head
8ear 3 years ago
parent 5783a769c5
commit 680b5ed8e3
No known key found for this signature in database
GPG Key ID: AAF736693E6C4E
  1. 13
      .travis.yml
  2. 2
      Makefile

@ -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

@ -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
Loading…
Cancel
Save