From db9d556a13f381900da86121bab30882356a795b Mon Sep 17 00:00:00 2001 From: Ann-Kathrin Edrich <edrich@mbd.rwth-aachen.de> Date: Tue, 22 Oct 2024 17:38:44 +0200 Subject: [PATCH] Update yml file --- .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de8aaa1..af2acea 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,4 +26,33 @@ pages: - public only: - main +image: python:3.7 + +before_script: + - pip install sphinx + - pip install -r requirements.txt + +stages: + - build + - deploy # Add the deploy stage here + +build-docs: + stage: build + script: + - sphinx-build -b html source/ _build/html + artifacts: + paths: + - _build/html + only: + - main + +pages: + stage: deploy + script: + - mv _build/html public + artifacts: + paths: + - public + only: + - main -- GitLab