Refactor publish workflow for PyPI
This commit is contained in:
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@@ -52,7 +52,7 @@ jobs:
|
|||||||
name: Publish to PyPI
|
name: Publish to PyPI
|
||||||
needs: [build_wheels]
|
needs: [build_wheels]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
# REMOVED problematic if condition
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install maturin for upload
|
- name: Install maturin for upload
|
||||||
@@ -71,8 +71,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
env:
|
env:
|
||||||
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} # ← FIXED: env var
|
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
ls -la *.whl
|
ls -la *.whl
|
||||||
maturin upload --skip-existing --non-interactive # ← No --token
|
maturin upload --skip-existing --non-interactive
|
||||||
|
|||||||
Reference in New Issue
Block a user