Skip to content
Snippets Groups Projects
Commit 2fb52394 authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

MAINT: Update .gitlab-ci.yml file to automatically build gitlab pages for the documentation

parent 88e63b9f
No related branches found
No related tags found
2 merge requests!91Release 0.3,!89MAINT: Update .gitlab-ci.yml file to automatically build gitlab pages for the documentation
Pipeline #33041 passed
...@@ -277,3 +277,26 @@ style: ...@@ -277,3 +277,26 @@ style:
script: script:
- autopep8 -r --diff --exit-code . - autopep8 -r --diff --exit-code .
allow_failure: true allow_failure: true
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
# Based on: https://gitlab.indiscale.com/caosdb/src/caosdb-pylib/-/ci/editor?branch_name=main
pages_prepare: &pages_prepare
tags: [ cached-dind ]
stage: deploy
needs: []
only:
refs:
- /^release-.*$/i
script:
- echo "Deploying documentation"
- make doc
- cp -r build/doc/html public
artifacts:
paths:
- public
pages:
<<: *pages_prepare
only:
refs:
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment