Newer
Older
# install Git for the mkdocs revision plugin
- time apt update && apt-get install -y git
# Install mkdocs and theme
- time pip install -r requirements.txt
test:
stage: test
script:
- time mkdocs build --site-dir test
artifacts:
paths:
- test
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: never
stage: deploy
variables:
- time mkdocs build --site-dir public
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH