Refactor wheel copying and upload process in CI
This commit is contained in:
19
.github/workflows/publish.yml
vendored
19
.github/workflows/publish.yml
vendored
@@ -59,18 +59,21 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# CREATE flattened dir FIRST
|
|
||||||
mkdir -p dist/flattened
|
mkdir -p dist/flattened
|
||||||
|
rm -rf dist/flattened/* # Clear
|
||||||
|
|
||||||
# Copy ALL wheels from ALL subdirs
|
# Copy EVERY wheel from EVERY subdir
|
||||||
find dist -name "*.whl" -exec cp {} dist/flattened/ \;
|
find dist -name "*.whl" | while read wheel; do
|
||||||
|
cp "$wheel" dist/flattened/
|
||||||
|
done
|
||||||
|
|
||||||
echo "=== ALL WHEELS FOUND ==="
|
echo "=== TOTAL WHEELS (should be 9+) ==="
|
||||||
ls -la dist/flattened/*.whl
|
ls -la dist/flattened/*.whl | wc -l
|
||||||
|
|
||||||
cd dist/flattened
|
cd dist/flattened
|
||||||
echo "=== UPLOADING FROM $(pwd) ==="
|
echo "=== UPLOADING $(ls *.whl | wc -l) WHEELS ==="
|
||||||
ls -la *.whl
|
ls -la *.whl | head -5
|
||||||
maturin upload --skip-existing --non-interactive
|
maturin upload --skip-existing --non-interactive *.whl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user