From 95b460b9b0faa85b96940e5484a6816e7020cb93 Mon Sep 17 00:00:00 2001
From: Florian Fischer <florian.fischer-2@mni.thm.de>
Date: Tue, 14 Jan 2025 11:53:43 +0100
Subject: [PATCH] adds stages

---
 .gitlab-ci.yml | 40 +++++++++++-----------------------------
 1 file changed, 11 insertions(+), 29 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fada26..8b77004 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
-- 
GitLab