Skip to content

Commit

Permalink
[CI] Fix S3 uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed Mar 5, 2024
1 parent 4864f03 commit a744acd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ops/test-linux-python-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ops/test-sdist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion ops/test-win-python-wheel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
)

0 comments on commit a744acd

Please sign in to comment.