diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 44e9cdc..a53b4f5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -56,40 +56,23 @@ jobs: runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' - steps: + steps: - name: Download ALL wheels uses: actions/download-artifact@v4 with: path: dist - - name: Debug - List ALL files - run: | - echo "=== FULL TREE ===" - find dist -type f | head -20 - echo "=== WHEELS ONLY ===" - find dist -name "*.whl" || echo "❌ NO .whl FILES FOUND" - echo "=== dist/ CONTENTS ===" - ls -la dist/ - - name: Flatten wheels to dist/ run: | - mkdir -p dist/wheels find dist -name "*.whl" -exec cp {} dist/ \; - echo "FINAL dist/ wheels:" - ls -la dist/*.whl || echo "❌ STILL NO WHEELS" + echo "Wheels ready:" + ls -la dist/*.whl + + - name: Publish from dist/ + run: | + cd dist + ls -la *.whl # Confirm wheels here + maturin upload --token ${{ secrets.PYPI_API_TOKEN }} --skip-existing --non-interactive - - name: Publish to PyPI - uses: PyO3/maturin-action@v1 - with: - token: ${{ secrets.PYPI_API_TOKEN }} # ← FIXED: token not pypi-token - command: upload - args: --skip-existing --non-interactive - - - name: Publish to PyPI # ← ADD THIS - uses: PyO3/maturin-action@v1 - with: - token: ${{ secrets.PYPI_API_TOKEN }} - command: upload - args: --skip-existing --non-interactive