Modify publish.yml to flatten wheel uploads

Updated the publish workflow to create a flattened directory for wheels before copying them.
This commit is contained in:
BillTheMaker
2025-12-06 20:06:43 -07:00
committed by GitHub
parent 0994b6656e
commit feff63fb36

View File

@@ -59,13 +59,18 @@ jobs:
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
# Find ALL wheels from ALL subdirectories
# CREATE flattened dir FIRST
mkdir -p dist/flattened
# Copy ALL wheels from ALL subdirs
find dist -name "*.whl" -exec cp {} dist/flattened/ \;
echo "Flattened wheels:"
echo "=== ALL WHEELS FOUND ==="
ls -la dist/flattened/*.whl
cd dist/flattened
echo "Uploading from $(pwd):"
echo "=== UPLOADING FROM $(pwd) ==="
ls -la *.whl
maturin upload --skip-existing --non-interactive