Skip to content

Commit

Permalink
Merge pull request #8829 from RocketChat/fix-asc-upload
Browse files Browse the repository at this point in the history
Fix link to .asc file on S3
  • Loading branch information
sampaiodiego authored Nov 9, 2017
2 parents d0954ba + 4ab29d0 commit 79c8094
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/setartname.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if [[ $CIRCLE_TAG ]]; then
export ARTIFACT_NAME="$(npm run version --silent)"
else
export ARTIFACT_NAME="$(npm run version --silent).circleci-$CIRCLE_BUILD_NUM"
export ARTIFACT_NAME="$(npm run version --silent).$CIRCLE_BUILD_NUM"
fi

if [[ $CIRCLE_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+-rc\.[0-9]+ ]]; then
Expand Down
6 changes: 6 additions & 0 deletions .circleci/update-releases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ if [[ $RC_RELEASE = "develop" ]]; then
--website-redirect-location "https://download.rocket.chat/build/rocket.chat-$ARTIFACT_NAME.tgz" \
--bucket download.rocket.chat \
--key "build/rocket.chat-$RC_VERSION.tgz"

aws s3api put-object \
--acl public-read \
--website-redirect-location "https://download.rocket.chat/build/rocket.chat-$ARTIFACT_NAME.tgz.asc" \
--bucket download.rocket.chat \
--key "build/rocket.chat-$RC_VERSION.tgz.asc"
fi

aws s3api put-object \
Expand Down

0 comments on commit 79c8094

Please sign in to comment.