Skip to content

Commit

Permalink
Update build_wheels.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
borisbolliet authored Sep 29, 2024
1 parent 294700e commit 6c2e9cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,14 @@ jobs:
else
echo "No wheels to upload."
fi
if [ "$(ls -A dist)" ]; then
echo "Uploading source distribution..."
twine upload dist/*

if [ -d "dist" ] && [ "$(ls -A dist)" ]; then
echo "Uploading source distribution to PyPI..."
twine upload dist/*.tar.gz || echo "Source distribution upload failed, probably cause it's already there continuing..."
else
echo "No source distribution to upload."
fi

env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 6c2e9cf

Please sign in to comment.