From e76d7a0a5b1ea265669110292c5601f05622bd2d Mon Sep 17 00:00:00 2001 From: BillTheMaker Date: Sat, 6 Dec 2025 20:11:44 -0700 Subject: [PATCH] Refactor wheel copying and upload process in CI --- .github/workflows/publish.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 44d7c8d..f74c161 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,18 +59,21 @@ jobs: env: PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} run: | - # CREATE flattened dir FIRST mkdir -p dist/flattened + rm -rf dist/flattened/* # Clear - # Copy ALL wheels from ALL subdirs - find dist -name "*.whl" -exec cp {} dist/flattened/ \; + # Copy EVERY wheel from EVERY subdir + find dist -name "*.whl" | while read wheel; do + cp "$wheel" dist/flattened/ + done - echo "=== ALL WHEELS FOUND ===" - ls -la dist/flattened/*.whl + echo "=== TOTAL WHEELS (should be 9+) ===" + ls -la dist/flattened/*.whl | wc -l cd dist/flattened - echo "=== UPLOADING FROM $(pwd) ===" - ls -la *.whl - maturin upload --skip-existing --non-interactive + echo "=== UPLOADING $(ls *.whl | wc -l) WHEELS ===" + ls -la *.whl | head -5 + maturin upload --skip-existing --non-interactive *.whl +