Refactor publish workflow for PyPI

This commit is contained in:
BillTheMaker
2025-12-06 19:30:14 -07:00
committed by GitHub
parent 000a2fad3a
commit f9ecbae6a4

View File

@@ -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