add gitlab CI build

This commit is contained in:
Maximilian Keßler 2022-02-15 21:46:39 +01:00
parent 37420b422c
commit 51364158b9
2 changed files with 41 additions and 0 deletions

8
.ci/build_document.sh Executable file
View file

@ -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

33
.gitlab-ci.yml Normal file
View file

@ -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