Update publish.yml
This commit is contained in:
33
.github/workflows/publish.yml
vendored
33
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user