blob: 96254ff7d113e421b46f01827600be3ebac96af3 (
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
35
|
---
render:
stage: build
image:
name: ghcr.io/typst/typst:0.15.1
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
- ./build.sh
artifacts:
paths:
- build/
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 sync build/ "s3://${S3_BUCKET_NAME}/${S3_UPLOAD_DIR}"
--delete --exclude "KumarDamaniCV.pdf"
|