aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
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"