Modify publish.yml to flatten wheel uploads
Updated the publish workflow to create a flattened directory for wheels before copying them.
This commit is contained in:
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@@ -59,13 +59,18 @@ jobs:
|
||||
env:
|
||||
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||
run: |
|
||||
# Find ALL wheels from ALL subdirectories
|
||||
# CREATE flattened dir FIRST
|
||||
mkdir -p dist/flattened
|
||||
|
||||
# Copy ALL wheels from ALL subdirs
|
||||
find dist -name "*.whl" -exec cp {} dist/flattened/ \;
|
||||
echo "Flattened wheels:"
|
||||
|
||||
echo "=== ALL WHEELS FOUND ==="
|
||||
ls -la dist/flattened/*.whl
|
||||
|
||||
cd dist/flattened
|
||||
echo "Uploading from $(pwd):"
|
||||
echo "=== UPLOADING FROM $(pwd) ==="
|
||||
ls -la *.whl
|
||||
maturin upload --skip-existing --non-interactive
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user