From e1bea47fd627f32d172734def17edfeba4b0abc4 Mon Sep 17 00:00:00 2001
From: Rebecca Kohlhaas <rebecca.kohlhaas@iws.uni-stuttgart.de>
Date: Tue, 9 Jul 2024 07:08:01 +0000
Subject: [PATCH] Update .gitlab-ci.yml file to build the pages

---
 .gitlab-ci.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9dbdcbb67..f5528f44d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -42,6 +42,7 @@ before_script:
 stages:          # List of stages for jobs, and their order of execution
   - build
   - test
+  - pages
   - deploy
 
 
@@ -76,6 +77,18 @@ unit-test-job:   # This job runs in the test stage.
        - tests/**/*
       when: always
 
+pages-job:
+  stage: pages
+  script:
+  - pip install -U sphinx
+  - sphinx-build -b html . public
+  artifacts:
+    paths:
+    - public
+  #only:
+  #- master
+
+
 deploy-job:      # This job runs in the deploy stage.
   stage: deploy  # It only runs when *both* jobs in the test stage complete successfully.
   environment: production
-- 
GitLab