pgLab/.gitlab-ci.yml

30 lines
447 B
YAML

image: python:3.7-alpine
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/pip-cache"
cache:
paths:
- "$CI_PROJECT_DIR/pip-cache"
key: "$CI_PROJECT_ID"
test-docs:
stage: test
script:
- pip install -U sphinx
- sphinx-build -b html docs public
only:
- branches
except:
- main
pages:
stage: deploy
script:
- pip install -U sphinx
- sphinx-build -b html docs public
artifacts:
paths:
- public
only:
- main