From 8d3965dcff57e280ef9012207ffbd6dd2a6e911a Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Sun, 1 Mar 2026 12:16:07 +0000 Subject: [PATCH] Always build dev docs --- .gitlab-ci.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0cf7ca82..4fbfa51e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -176,7 +176,10 @@ build: # Only runs when a .py file is edited unless the commit branch is V3 build-docs: - extends: .python + extends: + - .python + # Always build docs + - .rules_common stage: build script: - | @@ -200,17 +203,7 @@ build-docs: environment: name: review/$CI_COMMIT_REF_SLUG 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 server_lifecycle_test: