blob: ebdefc6433f022f10c30b22c15b0a705702c4251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
---
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
deploy:
stage: deploy
image:
name: amazon/aws-cli:latest
entrypoint: [""]
rules:
- if: $CI_COMMIT_BRANCH == "main"
changes:
- "**/*.typ"
needs:
- render
script:
- >
aws --endpoint-url "$S3_ENDPOINT"
s3 cp cv.pdf "s3://${S3_BUCKET_NAME}/${S3_UPLOAD_DIR}/KumarDamaniCV.pdf"
|