Skip to content
Snippets Groups Projects
Commit 252f79d5 authored by Börcsök Barnabás's avatar Börcsök Barnabás :earth_africa:
Browse files

Update .gitlab-ci.yml file

parent 4951746f
No related branches found
No related tags found
No related merge requests found
Pipeline #42217 failed
# This file is a template, and might need editing before it works on your project. compile_pdf:
# To contribute improvements to CI/CD templates, please follow the Development guide at: stage: build
# https://docs.gitlab.com/ee/development/cicd/templates.html image: timnn/texlive # use a Docker image for LaTeX from https://hub.docker.com/
# This specific template is located at: script: pdflatex main.tex # build the pdf just as you would on your computer
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/LaTeX.gitlab-ci.yml artifacts:
paths:
--- - main.pdf # instruct GitLab to keep the main.pdf file
variables:
# Feel free to choose the image that suits you best.
# blang/latex:latest ... Former image used in this template. No longer maintained by author.
# listx/texlive:2020 ... The default, referring to TexLive 2020. Current at least to 2021-02-02.
# Additional alternatives with high Docker pull counts:
# thomasweise/docker-texlive-full
# thomasweise/texlive
# adnrv/texlive
LATEX_IMAGE: listx/texlive:2020
build: pages:
image: $LATEX_IMAGE stage: deploy
script: script:
- latexmk -pdf - mkdir public # create a folder called public
- cp main.pdf public # copy the pdf file into the public folder
artifacts: artifacts:
paths: paths:
- "*.pdf" - public # instruct GitLab to keep the public folder
only:
- main # deploy the pdf only for commits made to the main branch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment