File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,23 @@ aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
18
18
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
19
19
aws configure set default.region $AWS_DEFAULT_REGION
20
20
21
+ generate_link () {
22
+ local type=$1
23
+ local identifier=$2
24
+ local package_name=$3
25
+ local link_package_name=$( echo " $package_name " | sed ' s/^mongooseim/mim/' )
26
+ echo " Package link: https://esl.github.io/circleci-mim-results/s3_packages.html?prefix=${type} /${identifier} /${link_package_name} "
27
+ }
28
+
21
29
if [ -n " $CIRCLE_TAG " ]; then
22
30
aws s3 cp " ${PACKAGE_NAME} " " s3://mim-packages/tags/${CIRCLE_TAG} /${PACKAGE_NAME} " --acl public-read --quiet
23
31
24
32
echo " $GH_RELEASE_TOKEN " | gh auth login --with-token
25
33
gh release upload " ${CIRCLE_TAG} " " ${PACKAGE_NAME} " --repo " ${CIRCLE_PROJECT_USERNAME} /${CIRCLE_PROJECT_REPONAME} "
34
+
35
+ generate_link " tags" " $CIRCLE_TAG " " $PACKAGE_NAME "
26
36
else
27
37
aws s3 cp " ${PACKAGE_NAME} " " s3://mim-packages/branches/${CIRCLE_BRANCH} /${prefix} /${PACKAGE_NAME} " --acl public-read --quiet
38
+
39
+ generate_link " branches" " $CIRCLE_BRANCH /$prefix " " $PACKAGE_NAME "
28
40
fi
You can’t perform that action at this time.
0 commit comments