[CI][Installation] Avoid uploading CUDA 11.8 wheel (#10535)

Signed-off-by: simon-mo <simon.mo@hey.com>
Co-authored-by: simon-mo <simon.mo@hey.com>
This commit is contained in:
Yunmeng 2024-11-22 05:03:58 +08:00 committed by GitHub
parent f9310cbd0c
commit edec3385b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,12 @@ echo "Version: $version"
# If the version contains "dev", rename it to v1.0.0.dev for consistency
if [[ $version == *dev* ]]; then
new_version="1.0.0.dev"
suffix="${version##*.}"
if [[ $suffix == cu* ]]; then
new_version="1.0.0.dev+${suffix}"
else
new_version="1.0.0.dev"
fi
new_wheel="${wheel/$version/$new_version}"
mv -- "$wheel" "$new_wheel"
wheel="$new_wheel"