Update publish.yml

This commit is contained in:
BillTheMaker
2025-12-06 19:25:47 -07:00
committed by GitHub
parent 14b0481d7c
commit 000a2fad3a

View File

@@ -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