diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 47e122ae7f6b3f88d75882f917089da7bf62398d..5e096c1b5a492948bb4df55d6d1539d5af94c4b0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,8 +3,11 @@ image: collaborating.tuhh.de:5005/e-4/utilities/docker-images/ci-latex
 build:
   stage: build
   script:
-    - pdflatex -interaction=nonstopmode demo_tuhh_presentation
-    - pdflatex -interaction=nonstopmode demo_tuhh_presentation
+    - latexmk -pdf demo_tuhh_presentation
+  environment:
+    name: demo_tuhh_presentation/$CI_COMMIT_REF_NAME
+    url: $CI_PROJECT_URL/-/jobs/$CI_JOB_ID/artifacts/raw/demo_tuhh_presentation.pdf
   artifacts:
     paths:
       - demo_tuhh_presentation.pdf
+