Always build dev docs

This commit is contained in:
Julian Stirling 2026-03-01 12:16:07 +00:00
parent bc36a1e9d0
commit 8d3965dcff

View file

@ -176,7 +176,10 @@ build:
# Only runs when a .py file is edited unless the commit branch is V3 # Only runs when a .py file is edited unless the commit branch is V3
build-docs: build-docs:
extends: .python extends:
- .python
# Always build docs
- .rules_common
stage: build stage: build
script: script:
- | - |
@ -200,17 +203,7 @@ build-docs:
environment: environment:
name: review/$CI_COMMIT_REF_SLUG name: review/$CI_COMMIT_REF_SLUG
url: https://$CI_PROJECT_ROOT_NAMESPACE.gitlab.io/-/openflexure-microscope-server/-/jobs/$JOB_ID/artifacts/apidocs/index.html url: https://$CI_PROJECT_ROOT_NAMESPACE.gitlab.io/-/openflexure-microscope-server/-/jobs/$JOB_ID/artifacts/apidocs/index.html
rules:
# So that 'pages' job at the end always works
# Add new rule first as the rules defined in .python
# end in when: never, so if this new rule goes after that
# clause, it will never be reached as rules are
# evaluated top to bottom
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# This syntax means we append the rules from the .python
# job to this job, instead of overwriting them by creating
# this new rules section
- !reference [.python, rules]
# Only runs when a .py file is edited # Only runs when a .py file is edited
server_lifecycle_test: server_lifecycle_test: