[CI] Fix S3 upload for manylinux2014 wheels (#10483)

This commit is contained in:
Philip Hyunsu Cho 2024-06-24 14:40:28 -07:00 committed by GitHub
parent d4dee25eb3
commit 4c1920a6a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -26,10 +26,8 @@ mv -v wheelhouse/*.whl python-package/dist/
echo "--- Upload Python wheel"
buildkite-agent artifact upload python-package/dist/*.whl
$command_wrapper bash -c "${python_bin} -m pip install awscli"
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
${python_bin} -m awscli s3 \
cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \
aws s3 cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \
--acl public-read --no-progress
fi

View File

@ -26,10 +26,8 @@ mv -v wheelhouse/*.whl python-package/dist/
echo "--- Upload Python wheel"
buildkite-agent artifact upload python-package/dist/*.whl
$command_wrapper bash -c "${python_bin} -m pip install awscli"
if [[ ($is_pull_request == 0) && ($is_release_branch == 1) ]]
then
${python_bin} -m awscli s3 \
cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \
aws s3 cp python-package/dist/*.whl s3://xgboost-nightly-builds/${BRANCH_NAME}/ \
--acl public-read --no-progress
fi