diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1501e50762f1236ce57f20ba9c4aca8265f662bc..d29927ef87297af0d710a371129a2543dd0e79a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,7 +42,6 @@ before_script:
 stages:          # List of stages for jobs, and their order of execution
   - build
   - test
-  - pages
   - deploy
 
 
@@ -77,12 +76,13 @@ unit-test-job:   # This job runs in the test stage.
        - tests/**/*
       when: always
 
-pages-job:
-  stage: pages
+pages:
+  stage: deploy
   script:
   - pip install -U sphinx m2r2 furo
   - pip install -e .
   - sphinx-build -b html docs/source public
+  - mv docs/diagrams ../
   artifacts:
     paths:
     - public