stages:
  - slides
  - site

pages:
  image: python:3-alpine
  stage: site
  script:
    - pip install j2static
    - mkdir public
    - j2static generate
    - mv slides_pdf public
    - mv site/** public
  artifacts:
    paths:
    - public
  only:
  - master

slides:
  image: blang/latex:latest
  stage: slides
  script:
    - apt update && apt install -y git
    - ./build_slides.sh
  artifacts:
    paths:
    - slides_pdf

