From feff63fb369e6b886929a6fc2309b9386b7d3953 Mon Sep 17 00:00:00 2001 From: BillTheMaker Date: Sat, 6 Dec 2025 20:06:43 -0700 Subject: [PATCH] Modify publish.yml to flatten wheel uploads Updated the publish workflow to create a flattened directory for wheels before copying them. --- .github/workflows/publish.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ed46667..44d7c8d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 +