mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Revert "Experiment with removing --profile ruby for now"
This reverts commit 6986536488
.
We were just missing the secrets.
This commit is contained in:
parent
6986536488
commit
1b8fb4860b
1 changed files with 6 additions and 1 deletions
|
@ -5,6 +5,11 @@
|
|||
# tool/release.sh 3.0.0-rc1
|
||||
|
||||
EXTS='.tar.gz .tar.xz .zip'
|
||||
if [[ -n $AWS_ACCESS_KEY_ID ]]; then
|
||||
AWS_CLI_OPTS=""
|
||||
else
|
||||
AWS_CLI_OPTS="--profile ruby"
|
||||
fi
|
||||
|
||||
ver=$1
|
||||
if [[ $ver =~ ^([1-9]\.[0-9])\.([0-9]|[1-9][0-9]|0-(preview[1-9]|rc[1-9]))$ ]]; then
|
||||
|
@ -18,5 +23,5 @@ short=${BASH_REMATCH[1]}
|
|||
echo $ver
|
||||
echo $short
|
||||
for ext in $EXTS; do
|
||||
aws s3 cp s3://ftp.r-l.o/pub/tmp/ruby-$ver-draft$ext s3://ftp.r-l.o/pub/ruby/$short/ruby-$ver$ext
|
||||
aws $AWS_CLI_OPTS s3 cp s3://ftp.r-l.o/pub/tmp/ruby-$ver-draft$ext s3://ftp.r-l.o/pub/ruby/$short/ruby-$ver$ext
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue