Update publish.yml
This commit is contained in:
35
.github/workflows/publish.yml
vendored
35
.github/workflows/publish.yml
vendored
@@ -56,40 +56,23 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download ALL wheels
|
- name: Download ALL wheels
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: dist
|
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/
|
- name: Flatten wheels to dist/
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist/wheels
|
|
||||||
find dist -name "*.whl" -exec cp {} dist/ \;
|
find dist -name "*.whl" -exec cp {} dist/ \;
|
||||||
echo "FINAL dist/ wheels:"
|
echo "Wheels ready:"
|
||||||
ls -la dist/*.whl || echo "❌ STILL NO WHEELS"
|
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