From 51364158b9e898f0c9eb0714300e61a5761c980c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 15 Feb 2022 21:46:39 +0100 Subject: [PATCH] add gitlab CI build --- .ci/build_document.sh | 8 ++++++++ .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100755 .ci/build_document.sh create mode 100644 .gitlab-ci.yml diff --git a/.ci/build_document.sh b/.ci/build_document.sh new file mode 100755 index 0000000..dfb71ff --- /dev/null +++ b/.ci/build_document.sh @@ -0,0 +1,8 @@ +set -e +echo "Building document" +make pdf +mkdir public +mv 2021_Systemnahe_Programmierung.pdf public +mv 2021_Systemnahe_Programmierung.log public +cd public/ +tree -H '.' -I "index.html" -D --charset utf-8 -T "Systemnahe Programmierung" > index.html diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3c1396b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +stages: + - build + - pages + +default: + tags: + - latex + +build-document: + stage: build + script: + - .ci/build_document.sh + variables: + GIT_SUBMODULE_STRATEGY: recursive + artifacts: + paths: + - public/ + only: + - tags + - branches + # - merge_requests + + +pages: + stage: pages + artifacts: + paths: + - public/ + script: + - echo "Deploying to pages" + - test -f public/2021_Systemnahe_Programmierung.pdf + only: + - master