TNO Intern

Commit 4e8b1245 authored by Zanne Korevaar's avatar Zanne Korevaar
Browse files

Merge branch '1-add-pages-job-to-pipeline' into 'main'

Resolve "add pages job to pipeline"

Closes #1

See merge request !1
parents e0ea7618 9faf3b18
Loading
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
stages:
  - test
  - deploy

Run tests:
  stage: test
@@ -15,4 +16,23 @@ Run tests:
    - main
    - merge_requests

pages:
  stage: deploy
  image: python:3.12
  needs: ["Run tests"]  # Wait for tests to pass
  before_script:
    - pip install uv
    - uv venv
    - uv pip install mkdocs mkdocs-material mike mkdocstrings mkdocstrings-python ruff
  script:
    - rm -rf public
    - uv run mkdocs build --site-dir public
  artifacts:
    paths:
      - public
  rules:
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'