Skip to content

Commit b11bcc7

Browse files
author
Jason Mobarak
authored
There's no PR bucket for this project (#2)
1 parent b050926 commit b11bcc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ fi
2020

2121
REPO="${PWD##*/}"
2222
BUCKET="${BUCKET:-llvm-obfuscator-arm}"
23-
PRS_BUCKET="${PRS_BUCKET:-llvm-obfuscator-arm-pull-requests}"
2423

2524
BUILD_VERSION="$(git describe --tags --dirty --always)"
2625
BUILD_PATH="$REPO/$BUILD_VERSION"
@@ -41,12 +40,13 @@ echo "Publish TAG ($TRAVIS_TAG)"
4140

4241
for file in "$@"; do
4342
KEY="$BUILD_PATH/$(basename "$file")"
43+
OBJECT="s3://$BUCKET/$KEY"
4444
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
4545
if [[ "$TRAVIS_BRANCH" == master || "$TRAVIS_TAG" == v* || "$TRAVIS_BRANCH" == v*-release ]]; then
4646
OBJECT="s3://$BUCKET/$KEY"
4747
aws s3 cp "$file" "$OBJECT"
4848
fi
4949
else
50-
aws s3api put-object --no-sign-request --bucket "$PRS_BUCKET" --key "$KEY" --body "$file" --acl public-read
50+
aws s3 cp "$file" "$OBJECT"
5151
fi
5252
done

0 commit comments

Comments
 (0)