diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b80999c3e1496f52cc0126fe8a7ba9a3a2371f6..024cb1ffd5edc25cee87914933259f2eac7e4b1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -120,22 +120,25 @@ trigger_inttest: # 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 -pages_prepare: &pages_prepare +.pages_prepare: &pages_prepare tags: [ cached-dind ] stage: deploy - only: - refs: - - /^release-.*$/i + needs: [] script: - mkdir -p build - cd build - cmake .. - cmake --build . --target doc-sphinx - cp -r doc/sphinx_out ../public - artifacts: - paths: - - public + +test_pages: + <<: *pages_prepare + pages: <<: *pages_prepare only: - - schedule + refs: + - /^release-.*$/i + artifacts: + paths: + - public