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