.gitlab-ci.yml 638 Bytes
Newer Older
bluprince13's avatar
bluprince13 committed
1 2
compile_pdf:
  stage: build
bluprince13's avatar
bluprince13 committed
3
  image: timnn/texlive  # use a Docker image for LaTeX from https://hub.docker.com/
bluprince13's avatar
bluprince13 committed
4
  script: pdflatex main.tex  # build the pdf just as you would on your computer
bluprince13's avatar
bluprince13 committed
5 6
  artifacts:
    paths: 
bluprince13's avatar
bluprince13 committed
7
      - main.pdf  # instruct GitLab to keep the main.pdf file
bluprince13's avatar
bluprince13 committed
8 9 10 11

pages:
  stage: deploy
  script:
bluprince13's avatar
bluprince13 committed
12 13
    - mkdir public  # create a folder called public
    - cp main.pdf public  # copy the pdf file into the public folder
bluprince13's avatar
bluprince13 committed
14 15
  artifacts:
    paths: 
bluprince13's avatar
bluprince13 committed
16
      - public  # instruct GitLab to keep the public folder
bluprince13's avatar
bluprince13 committed
17
  only:
bluprince13's avatar
bluprince13 committed
18
    - tags  # Only for tagged releases (e.g. 0.1, 1.0)
bluprince13's avatar
bluprince13 committed
19
  except:
bluprince13's avatar
bluprince13 committed
20
    - branches  # Only for the master branch