From 000a2fad3aa867e5f29acdca5d6b68bb1893ca0e Mon Sep 17 00:00:00 2001 From: BillTheMaker Date: Sat, 6 Dec 2025 19:25:47 -0700 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9b68cbb..4ed4279 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,6 +10,8 @@ jobs: build_wheels: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} + # SPEED FIX: Skip on manual dispatch (use artifacts) + if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/') strategy: matrix: include: @@ -37,7 +39,6 @@ jobs: uses: PyO3/maturin-action@v1 with: target: ${{ matrix.target }} - # REMOVED: python (invalid input) command: build args: --release --out dist --find-interpreter @@ -55,8 +56,7 @@ jobs: steps: - name: Install maturin for upload - run: | - pip install maturin + run: pip install maturin - name: Download ALL wheels uses: actions/download-artifact@v4 @@ -70,7 +70,9 @@ jobs: ls -la dist/*.whl - name: Publish to PyPI + env: + PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} # ← FIXED: env var run: | cd dist - maturin upload --token ${{ secrets.PYPI_API_TOKEN }} --skip-existing --non-interactive - shell: bash + ls -la *.whl + maturin upload --skip-existing --non-interactive # ← No --token