Update publish.yml
This commit is contained in:
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user