upload universal wheels but artifact all wheels

This commit is contained in:
JuniorJPDJ 2022-11-28 12:07:25 +00:00
parent 0b9f5be811
commit 2e34f40980
1 changed files with 3 additions and 5 deletions

View File

@ -131,13 +131,11 @@ build_dep_wheels:
echo "Fixing $wheel" echo "Fixing $wheel"
tools/bin/auditwheel repair --strip "$wheel" || true tools/bin/auditwheel repair --strip "$wheel" || true
done done
# remove basic wheels as we have universal wheels now
- rm -f wheelhouse/*-linux*.whl wheelhouse/*.linux*.whl
- ls -l wheelhouse - ls -l wheelhouse
- | - |
# upload wheels to gitlab package repository # upload universal wheels to gitlab package repository
for wheel in wheelhouse/* ; do for wheel in wheelhouse/*musllinux*.whl ; do
[ "$wheel" = 'wheelhouse/*' ] && continue [ "$wheel" = 'wheelhouse/*musllinux*.whl' ] && continue
echo "Uploading $wheel" echo "Uploading $wheel"
TWINE_USERNAME=gitlab-ci-token TWINE_PASSWORD=${CI_JOB_TOKEN} tools/bin/twine upload --disable-progress-bar --repository-url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi" "$wheel" || true TWINE_USERNAME=gitlab-ci-token TWINE_PASSWORD=${CI_JOB_TOKEN} tools/bin/twine upload --disable-progress-bar --repository-url "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/pypi" "$wheel" || true
done done