Skip to content
Snippets Groups Projects
Verified Commit 935d7d39 authored by Thomas Lambert's avatar Thomas Lambert :helicopter:
Browse files

ci: add automatic build and deploy

parent bb40e2b2
No related branches found
No related tags found
No related merge requests found
Pipeline #7066 failed
---
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment