diff options
Diffstat (limited to '.gitlab-ci.yml')
| -rw-r--r-- | .gitlab-ci.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..18fbf42 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,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 |
