Enhance publish workflow with wheel verification
Added steps to verify and flatten wheels before publishing.
This commit is contained in:
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@@ -54,15 +54,21 @@ jobs:
|
|||||||
name: Publish to PyPI
|
name: Publish to PyPI
|
||||||
needs: [build_wheels]
|
needs: [build_wheels]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Run on tags OR manual trigger
|
|
||||||
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
if: startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4
|
- name: Download ALL wheels
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: dist
|
||||||
pattern: wheels-*
|
|
||||||
merge-multiple: true
|
- name: Verify & flatten wheels
|
||||||
|
run: |
|
||||||
|
find dist -name "*.whl" -exec mv {} dist/ \;
|
||||||
|
echo "Wheels found:"
|
||||||
|
ls -la dist/*.whl || echo "❌ NO WHEELS!"
|
||||||
|
echo "Directory:"
|
||||||
|
ls -la dist/
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
@@ -70,3 +76,4 @@ jobs:
|
|||||||
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
|
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
command: upload
|
command: upload
|
||||||
args: --skip-existing --non-interactive
|
args: --skip-existing --non-interactive
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user