From aa5739df157dacc1f5c0fa602e4a60d4420fd3a8 Mon Sep 17 00:00:00 2001
From: Tom Teichler <tom.teichler@teckids.org>
Date: Wed, 18 Mar 2020 18:49:14 +0100
Subject: [PATCH] Deploy to teckids.edugit.io

---
 .gitignore     |  1 +
 .gitlab-ci.yml | 16 ++++++++++++++++
 Makefile       |  2 +-
 publishconf.py |  2 +-
 4 files changed, 19 insertions(+), 2 deletions(-)
 create mode 100644 .gitlab-ci.yml

diff --git a/.gitignore b/.gitignore
index 286bb862..399c55bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,3 +50,4 @@ DEADJOE
 
 # Pelican output
 output/
+public/
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..32ae5b9f
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,16 @@
+image: python:3.8-buster
+
+variables:
+  GIT_SUBMODULE_STRATEGY: recursive
+
+pages:
+  stage: deploy
+  before_script:
+  - pip install Markdown gitpython pelican py_w3c beautifulsoup4
+  script:
+  - make publish
+  artifacts:
+    paths:
+    - public/
+  only:
+  - master
diff --git a/Makefile b/Makefile
index dbfd58fc..823d7ae0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ PELICANOPTS=
 
 BASEDIR=$(CURDIR)
 INPUTDIR=$(BASEDIR)/content
-OUTPUTDIR=$(BASEDIR)/output
+OUTPUTDIR=$(BASEDIR)/public
 CONFFILE=$(BASEDIR)/pelicanconf.py
 PUBLISHCONF=$(BASEDIR)/publishconf.py
 
diff --git a/publishconf.py b/publishconf.py
index e43bba5a..612c12e7 100644
--- a/publishconf.py
+++ b/publishconf.py
@@ -22,4 +22,4 @@ DELETE_OUTPUT_DIRECTORY = True
 # Following items are often useful when publishing
 
 #DISQUS_SITENAME = ""
-#GOOGLE_ANALYTICS = ""
\ No newline at end of file
+#GOOGLE_ANALYTICS = ""
-- 
GitLab