slpkg/.gitlab-ci.yml
Dimitris Zlatanidis 1ca43ebb5f Added for branch
2023-06-12 09:21:46 +03:00

28 lines
462 B
YAML

image: python:3.8-buster
before_script:
- pip install -r requirements.txt
test:
stage: test
script:
- mkdocs build --strict --verbose --site-dir test
artifacts:
paths:
- test
only:
- site
rules:
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
pages:
stage: deploy
script:
- mkdocs build --strict --verbose
artifacts:
paths:
- public
only:
- site
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH