File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2020
2121REPO=" ${PWD##*/ } "
2222BUCKET=" ${BUCKET:- llvm-obfuscator-arm} "
23- PRS_BUCKET=" ${PRS_BUCKET:- llvm-obfuscator-arm-pull-requests} "
2423
2524BUILD_VERSION=" $( git describe --tags --dirty --always) "
2625BUILD_PATH=" $REPO /$BUILD_VERSION "
@@ -41,12 +40,13 @@ echo "Publish TAG ($TRAVIS_TAG)"
4140
4241for 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
5252done
You can’t perform that action at this time.
0 commit comments