Commit 2fa493f2 authored by Marthym's avatar Marthym

feat(build): Improve gitlab-ci config

parent 7ff000b9
Pipeline #26826 passed with stages
in 41 seconds
image: marthym/latex:1.0.0
image: marthym/latex:1.1.0
variables:
GIT_SUBMODULE_STRATEGY: recursive
dos-au-muur-SNAPSHOT:
cache:
paths:
- build/
compile:
stage: build
cache:
paths:
- "SWR-Dos au Muur.pdf"
script:
- latexmk -f -r swr-class/latexmkrc || true
deploy-SNAPSHOT:
stage: deploy
script:
- mv "build/dos-au-muur.pdf" "SWR-Dos au Muur.pdf"
artifacts:
expire_in: 1 day
expire_in: 1 week
name: "SWR-Dos au Muur SNAPSHOT.pdf"
paths:
- "SWR-Dos au Muur.pdf"
- "SWR-Dos au Muur.pdf"
allow_failure: true
dos-au-muur-RELEASE:
deploy-RELEASE:
stage: deploy
script:
- mv "SWR-Dos au Muur.pdf" "SWR-Dos au Muur v$CI_COMMIT_TAG.pdf"
only:
- tags
script:
- mv "build/dos-au-muur.pdf" "SWR-Dos au Muur v$CI_COMMIT_TAG.pdf"
artifacts:
name: "SWR-Dos au Muur v$CI_COMMIT_TAG"
paths:
- "SWR-Dos au Muur.pdf"
allow_failure: true
\ No newline at end of file
- "SWR-Dos au Muur v$CI_COMMIT_TAG.pdf"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment