cours-m1-eea/.gitlab-ci.yml
Pierre-antoine Comby 780084b1f4 future is near
2019-03-05 15:31:54 +01:00

18 lines
599 B
YAML

compile_pdf:
stage: build
image: timnn/texlive # use a Docker image for LaTeX from https://hub.docker.com/
script: pdflatex main.tex # build the pdf just as you would on your computer
artifacts:
paths:
- main.pdf # instruct GitLab to keep the main.pdf file
pages:
stage: deploy
script:
- mkdir public # create a folder called public
- cp main.pdf public # copy the pdf file into the public folder
artifacts:
paths:
- public # instruct GitLab to keep the public folder
only:
- master # deploy the pdf only for commits made to the master branch