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: build_wheels:
name: Build wheels on ${{ matrix.os }} name: Build wheels on ${{ matrix.os }}
runs-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: strategy:
matrix: matrix:
include: include:
@@ -37,7 +39,6 @@ jobs:
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
target: ${{ matrix.target }} target: ${{ matrix.target }}
# REMOVED: python (invalid input)
command: build command: build
args: --release --out dist --find-interpreter args: --release --out dist --find-interpreter
@@ -55,8 +56,7 @@ jobs:
steps: steps:
- name: Install maturin for upload - name: Install maturin for upload
run: | run: pip install maturin
pip install maturin
- name: Download ALL wheels - name: Download ALL wheels
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
@@ -70,7 +70,9 @@ jobs:
ls -la dist/*.whl ls -la dist/*.whl
- name: Publish to PyPI - name: Publish to PyPI
env:
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} # ← FIXED: env var
run: | run: |
cd dist cd dist
maturin upload --token ${{ secrets.PYPI_API_TOKEN }} --skip-existing --non-interactive ls -la *.whl
shell: bash maturin upload --skip-existing --non-interactive # ← No --token