aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorKumar Damani <me@kumardamani.net>2026-07-23 05:15:45 +0000
committerKumar Damani <me@kumardamani.net>2026-07-23 05:15:45 +0000
commit45d53f203633ae46759257095baf04374250af6f (patch)
treed0cf976ec6f8103aeb2e6e2dec4f4b06fd40424d /.gitlab-ci.yml
parentee0dbb605e73071431a3ea4b7bbfa03a6c292542 (diff)
added deploy job
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml16
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"