GitLab CI with LaTeX
For writing my thesis I used LaTeX
and I wanted to share my notes with my supervisor. We used
GitLab for that. One cool thing about GitLab
is, that you can use their CI/CD services to automatically build an
PDF document out of the LaTex source and share it on your GitLab
page. If someone wants to do something similar, here is the
.gitlab-ci.yml
file that I used:
pdf:
image: blang/latex
before_script:
- apt-get update
- apt-get install -y biber
script:
- cd notizen
- latexmk -shell-escape -pdf notizen.tex
- cp notizen.pdf ..
artifacts:
paths:
- "*.pdf"
pages:
stage: deploy
script:
- mkdir .public
- cp -r * .public
- mv .public public
dependencies:
- pdf
artifacts:
paths:
- public
only:
- master