From 20ddc28dd27ac704830361ff1e8eb3259a1bfdce Mon Sep 17 00:00:00 2001
From: Florian Fischer <florian.fischer-2@mni.thm.de>
Date: Tue, 14 Jan 2025 11:25:36 +0100
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..ec4469e
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,35 @@
+image: python:3.10
+
+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:
+  stage: deploy
+  script:
+    - echo "Deploying GitLab Pages"
+  artifacts:
+    paths:
+      - $PAGES_DIR
+    expire_in: 30 days
+  only:
+    - main
-- 
GitLab