diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0d5176cbe78225085ef29a60eaf882af4535b601..ce580b64bed28541a613df076fa0fc45b086907b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,9 +4,9 @@ image: python:3.11-slim
 before_script:
   - python3 -m pip install sphinx
 
-stages:
-  - pages
+
 pages:
+  stage: pages
   script:
     - sphinx-build -b html docs/ public/
   artifacts:
@@ -18,4 +18,7 @@ pages:
     # a pages deploy
     - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
       changes:
-        - docs/**/*
\ No newline at end of file
+        - docs/**/*
+
+stages:
+  - pages
\ No newline at end of file