Update .gitlab-ci.yml

This commit is contained in:
Isaac Riley 2024-05-07 07:31:41 +02:00
parent 78b8f18865
commit b6e2540399

View File

@ -1,12 +1,16 @@
# The Docker image that will be used to build your app
image: python:3.10-slim
image: python:3.10
# Functions that should be executed before the build script is run
before_script:
- pip install poetry
- poetry config virtualenvs.in-project true
- poetry install
pages:
script:
- make docs
- cp ./README.md ./docs/source/README.md && cp -r ./data ./docs/source/data/
- poetry run sphinx-apidoc ./src -o ./docs/source/modules --no-toc
--module-first --follow-links --separate --force
- poetry run sphinx-build -b html docs/source/ public/ -E -a
artifacts:
paths:
# The folder that contains the files to be exposed at the Page URL
@ -14,4 +18,4 @@ pages:
rules:
# This ensures that only pushes to the default branch will trigger
# a pages deploy
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH