From 09b4eb4510b99d0c3282d6254bcf5d789fca50bd Mon Sep 17 00:00:00 2001 From: BillTheMaker Date: Sat, 6 Dec 2025 17:30:54 -0700 Subject: [PATCH] Enhance publish workflow with wheel verification Added steps to verify and flatten wheels before publishing. --- .github/workflows/publish.yml | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5acfa0f..9d3e160 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -54,19 +54,26 @@ jobs: name: Publish to PyPI needs: [build_wheels] runs-on: ubuntu-latest - # Run on tags OR manual trigger if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' steps: - - uses: actions/download-artifact@v4 - with: - path: dist - pattern: wheels-* - merge-multiple: true - - - name: Publish to PyPI - uses: PyO3/maturin-action@v1 - with: - pypi-token: ${{ secrets.PYPI_API_TOKEN }} - command: upload - args: --skip-existing --non-interactive + - name: Download ALL wheels + uses: actions/download-artifact@v4 + with: + path: dist + + - name: Verify & flatten wheels + run: | + find dist -name "*.whl" -exec mv {} dist/ \; + echo "Wheels found:" + ls -la dist/*.whl || echo "❌ NO WHEELS!" + echo "Directory:" + ls -la dist/ + + - name: Publish to PyPI + uses: PyO3/maturin-action@v1 + with: + pypi-token: ${{ secrets.PYPI_API_TOKEN }} + command: upload + args: --skip-existing --non-interactive +