Refactor wheel copying and upload process in CI

This commit is contained in:
BillTheMaker
2025-12-06 20:11:44 -07:00
committed by GitHub
parent feff63fb36
commit e76d7a0a5b

View File

@@ -59,18 +59,21 @@ jobs:
env: env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: | run: |
# CREATE flattened dir FIRST
mkdir -p dist/flattened mkdir -p dist/flattened
rm -rf dist/flattened/* # Clear
# Copy ALL wheels from ALL subdirs # Copy EVERY wheel from EVERY subdir
find dist -name "*.whl" -exec cp {} dist/flattened/ \; find dist -name "*.whl" | while read wheel; do
cp "$wheel" dist/flattened/
done
echo "=== ALL WHEELS FOUND ===" echo "=== TOTAL WHEELS (should be 9+) ==="
ls -la dist/flattened/*.whl ls -la dist/flattened/*.whl | wc -l
cd dist/flattened cd dist/flattened
echo "=== UPLOADING FROM $(pwd) ===" echo "=== UPLOADING $(ls *.whl | wc -l) WHEELS ==="
ls -la *.whl ls -la *.whl | head -5
maturin upload --skip-existing --non-interactive maturin upload --skip-existing --non-interactive *.whl