ci: + pdf

This commit is contained in:
Kiara Grouwstra 2022-07-28 18:36:56 +02:00
parent 9c1dff7d3a
commit c580b447d5
1 changed files with 21 additions and 0 deletions

View File

@ -8,3 +8,24 @@ variables:
PROJECT_NAME: ${CI_PROJECT_NAME}
PROJECT_SLUG: ${CI_PROJECT_PATH_SLUG}
MARKDOWN_FILE: README.md
PDF_PATH: ${CI_PROJECT_PATH_SLUG}.pdf
build-pdf:
image:
name: texlive/texlive:latest
entrypoint: ["/bin/sh", "-c"]
script:
- mkdir dist
- xelatex --shell-escape main.tex
- cp main.pdf dist/${PDF_PATH}
artifacts:
paths:
- dist/
upload-pdf:
image: curlimages/curl:latest
needs:
- build-pdf
script:
- |
curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file dist/${PDF_PATH} ${PACKAGE_REGISTRY_URL}/pdf/${CI_COMMIT_BRANCH}/${PDF_PATH}