From 62f9462f1b8a53495f04a791c33749cc647e0181 Mon Sep 17 00:00:00 2001 From: Lukas Heiligenbrunner Date: Wed, 22 Apr 2020 10:18:25 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 599a89d..8d2c95f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,26 @@ image: luki42/latex-full:latest +stages: +- build +- release + + build: + stage: build script: - cd src - latexmk -pdf -file-line-error -interaction=nonstopmode -halt-on-error -output-format=pdf main.tex artifacts: paths: - "src/*.pdf" + +release: + stage: release + only: tags + release: + name: My $CI_PROJECT_NAME Release 1.0-$CI_COMMIT_SHORT_SHA + description: FSST Referat + assets: + - name: FSST-Referat-Pointer-Struct.pdf + path: src/main.pdf +