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