diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88c12cd3248208c41a7a68eaaa8ff80f92500fde..25cacb389dc10489c2f61aa8377fd385b4c334ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,11 +28,13 @@ fetch_fragments: - image_list.rst -pages: + +# as not named pages, the gitlab pages will not be updated +check_pages_build: stage: build needs: ["fetch_fragments"] rules: - - if: $CI_COMMIT_BRANCH == "docs" + - if: $CI_COMMIT_BRANCH != "docs" image: python:3.10 script: - mv image_list.rst source/user_guide/ @@ -43,4 +45,11 @@ pages: - mv build/html/ ./public artifacts: paths: - - public \ No newline at end of file + - public + + + +pages: + extends: check_pages_build + rules: + - if: $CI_COMMIT_BRANCH == "docs" \ No newline at end of file