From a520c6e92348d65ac18a2463533e7dffde734bf6 Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Tue, 19 Nov 2019 21:09:31 +0100
Subject: [PATCH] [CI] Build documentation for GitLab pages.

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5f7241dcd..11d2a507e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,3 +58,19 @@ deploy_demo-master:
         up -d
   only:
     - master
+
+pages:
+  stage: deploy
+  image:
+    name: python:3.8-buster
+  before_script:
+  - apt-get -y update && apt-get -y install make
+  - pip install poetry
+  script:
+  - pip install poetry
+  - poetry install; poetry run make -C docs html BUILDDIR=../public/docs
+  artifacts:
+    paths:
+    - public/
+  only:
+  - master
-- 
GitLab