Skip to content
Snippets Groups Projects
.gitlab-ci.yml 624 B
Newer Older
image: python:3.9-slim
fibasile's avatar
fibasile committed

before_script:
  # 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
fibasile's avatar
fibasile committed

test:
  stage: test
  script:
  - time mkdocs build --site-dir test
  artifacts:
    paths:
    - test
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
      when: never
fibasile's avatar
fibasile committed
pages:
    ENABLED_GIT_REVISION_DATE: "true"
fibasile's avatar
fibasile committed
  script:
  - time mkdocs build --site-dir public
fibasile's avatar
fibasile committed
  artifacts:
    paths:
    - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH