Update .gitlab-ci.yml
This commit is contained in:
parent
78b8f18865
commit
b6e2540399
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user