From a744acddfa0482284d19c72b4e567a572d4e146f Mon Sep 17 00:00:00 2001 From: Hyunsu Cho Date: Tue, 5 Mar 2024 14:09:42 -0800 Subject: [PATCH] [CI] Fix S3 uploads --- ops/test-linux-python-wheel.sh | 2 +- ops/test-sdist.sh | 2 +- ops/test-win-python-wheel.bat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ops/test-linux-python-wheel.sh b/ops/test-linux-python-wheel.sh index fb104b2..5f5a70d 100755 --- a/ops/test-linux-python-wheel.sh +++ b/ops/test-linux-python-wheel.sh @@ -9,4 +9,4 @@ echo "##[section]Running Python tests..." python -m pytest -v -rxXs --fulltrace --durations=0 tests/python/test_basic.py echo "##[section]Uploading Python wheels..." -python -m awscli s3 cp python/dist/*.whl s3://tl2cgen-wheels/ --acl public-read || true +python -m awscli s3 cp python/dist/*.whl s3://tl2cgen-wheels/ --acl public-read --region us-west-2 || true diff --git a/ops/test-sdist.sh b/ops/test-sdist.sh index 9b84169..886b51f 100755 --- a/ops/test-sdist.sh +++ b/ops/test-sdist.sh @@ -14,4 +14,4 @@ for file in ./tl2cgen-*.tar.gz do mv "${file}" "${file%.tar.gz}+${COMMIT_ID}.tar.gz" done -python -m awscli s3 cp tl2cgen-*.tar.gz s3://tl2cgen-wheels/ --acl public-read || true +python -m awscli s3 cp tl2cgen-*.tar.gz s3://tl2cgen-wheels/ --acl public-read --region us-west-2 || true diff --git a/ops/test-win-python-wheel.bat b/ops/test-win-python-wheel.bat index 40f002f..b464988 100644 --- a/ops/test-win-python-wheel.bat +++ b/ops/test-win-python-wheel.bat @@ -17,5 +17,5 @@ if %errorlevel% neq 0 exit /b %errorlevel% echo ##[section]Uploading Python wheels... for /R %%i in (python\\dist\\*.whl) DO ( - python -m awscli s3 cp "%%i" s3://tl2cgen-wheels/ --acl public-read || cd . + python -m awscli s3 cp "%%i" s3://tl2cgen-wheels/ --acl public-read --region us-west-2 || cd . )