aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 18fbf4203cc968ad023c439ad5eb1a2b3bbe0c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
render:
  stage: build
  image:
    name: ghcr.io/typst/typst:latest
    entrypoint: [""]
  rules:
    - if: $CI_COMMIT_BRANCH == "main"
      changes:
        - "**/*.typ"
  script:
    - >
      printf '{ "date": "%s", "link": "%s" }\n'
      "$(date '+%B %d, %Y' | sed 's/ 0/ /')" "$CI_JOB_URL" > ci.json
    - typst compile cv.typ
  artifacts:
    paths:
      - cv.pdf