--- 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"