diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fada2616cdbb67396bf1b7aad142ae4f2534cb3..8b770049e9694a60d0c895d1a9c0e5d2a000467c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,35 +1,17 @@
-image: python:3
-
 stages:
-  - build
-  - deploy
-
-variables:
-  GIT_SUBMODULE_STRATEGY: recursive
-  PAGES_DIR: public
-
-before_script:
-  - python -m pip install --upgrade pip
-  - pip install furo
-  - pip install sphinx
-  - pip install sphinx-rtd-theme
-
-build:
-  stage: build
-  script:
-    - mkdir -p $PAGES_DIR
-    - sphinx-build -b html docs $PAGES_DIR
-  artifacts:
-    paths:
-      - $PAGES_DIR
+  - pages
 
 pages:
-  stage: deploy
+  stage: pages
+  tags:
+    - Python3.8
+  needs:
+    - test
   script:
-    - echo "Deploying GitLab Pages"
+    - apt-get update
+    - apt-get install libgl1 -y
+    - sphinx-build -b html ./docs public
   artifacts:
     paths:
-      - $PAGES_DIR
-    expire_in: 30 days
-  only:
-    - main
+      # The folder that contains the files to be exposed at the Page URL
+      - public
\ No newline at end of file