Update publish.yml

This commit is contained in:
BillTheMaker
2025-12-06 18:48:02 -07:00
committed by GitHub
parent b25a070d5e
commit 9016b9213e

View File

@@ -62,34 +62,17 @@ jobs:
with:
path: dist
- name: Debug - List ALL files
run: |
echo "=== FULL TREE ==="
find dist -type f | head -20
echo "=== WHEELS ONLY ==="
find dist -name "*.whl" || echo "❌ NO .whl FILES FOUND"
echo "=== dist/ CONTENTS ==="
ls -la dist/
- name: Flatten wheels to dist/
run: |
mkdir -p dist/wheels
find dist -name "*.whl" -exec cp {} dist/ \;
echo "FINAL dist/ wheels:"
ls -la dist/*.whl || echo "❌ STILL NO WHEELS"
echo "Wheels ready:"
ls -la dist/*.whl
- name: Publish from dist/
run: |
cd dist
ls -la *.whl # Confirm wheels here
maturin upload --token ${{ secrets.PYPI_API_TOKEN }} --skip-existing --non-interactive
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
with:
token: ${{ secrets.PYPI_API_TOKEN }} # ← FIXED: token not pypi-token
command: upload
args: --skip-existing --non-interactive
- name: Publish to PyPI # ← ADD THIS
uses: PyO3/maturin-action@v1
with:
token: ${{ secrets.PYPI_API_TOKEN }}
command: upload
args: --skip-existing --non-interactive