--- render: stage: build image: name: ghcr.io/typst/typst:0.15.1 entrypoint: [""] rules: - if: $CI_COMMIT_BRANCH == "main" changes: # anything that is an input to the site build - "**/*.typ" - "global/**/*" - "post/**/*" - build.sh 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: # anything that is an input to the site build - "**/*.typ" - "global/**/*" - "post/**/*" - build.sh needs: - render script: - > aws --endpoint-url "$S3_ENDPOINT" s3 sync build/ "s3://${S3_BUCKET_NAME}/${S3_UPLOAD_DIR}" --delete --exclude "KumarDamaniCV.pdf"