summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2024-09-02 23:25:13 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2024-09-02 23:25:20 -0700
commit20c3401543a92c3f310a03c4d2e664c463e390ef (patch)
tree418105c78eed35be0c4fb8c3e45c9db3a00232c9
parente7cb70be4eb7411204f73ee748e317fefaa0410a (diff)
Drop `--profile ruby` on the release workflow
-rw-r--r--.github/workflows/release.yml1
-rwxr-xr-xtool/release.sh3
2 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e335c96514..8862a02821 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -34,6 +34,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.FTP_R_L_O_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.FTP_R_L_O_AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-west-2
+ AWS_CLI_OPTS: # drop `--profile ruby`
- name: Purge URLs of release package
run: |
diff --git a/tool/release.sh b/tool/release.sh
index 6b8cf3ea50..7afc95c969 100755
--- a/tool/release.sh
+++ b/tool/release.sh
@@ -5,6 +5,7 @@
# tool/release.sh 3.0.0-rc1
EXTS='.tar.gz .tar.xz .zip'
+AWS_CLI_OPTS="${AWS_CLI_OPTS:=--profile ruby}"
ver=$1
if [[ $ver =~ ^([1-9]\.[0-9])\.([0-9]|[1-9][0-9]|0-(preview[1-9]|rc[1-9]))$ ]]; then
@@ -18,5 +19,5 @@ short=${BASH_REMATCH[1]}
echo $ver
echo $short
for ext in $EXTS; do
- aws --profile ruby 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