diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..b6405f6849186e1b2414a98b3ddb59296a4d78b7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,50 @@ +--- + +stages: + - build + - deploy + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +.global_tag: &global_tag_def + tags: + - latex + +# Compile latex presentation +tex-compile: + <<: *global_tag_def + stage: build + image: aergus/latex + script: + # - git submodule init + # - git submodule update + - latexmk -pdf -f -interaction=nonstopmode *.tex + artifacts: + name: "$CI_PROJECT_NAME-$CI_COMMIT_SHA" + paths: + - "*.pdf" + expire_in: 12 hours + only: + - main + - dev + +# Expose pdf outputs publicly +pages: + <<: *global_tag_def + stage: deploy + script: + - mkdir public + - cp *.pdf public + artifacts: + paths: + - public + expire_in: 12 hours + only: + - main + + +# cache all auxilliary files to speed up compilation +cache: + untracked: true + key: "$CI_BUILD_NAME"