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:
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user