diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-07-23 05:15:45 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-07-23 05:15:45 +0000 |
| commit | 45d53f203633ae46759257095baf04374250af6f (patch) | |
| tree | d0cf976ec6f8103aeb2e6e2dec4f4b06fd40424d | |
| parent | ee0dbb605e73071431a3ea4b7bbfa03a6c292542 (diff) | |
added deploy job
| -rw-r--r-- | .gitlab-ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18fbf42..ebdefc6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,3 +16,19 @@ render: 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" |
