Skip to content

Commit

Permalink
Add publish to pypi step
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-2023 committed Feb 7, 2025
1 parent da8c320 commit d5b519a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,22 @@ jobs:
echo "Contents of wheelhouse:"
ls -l wheelhouse/
- name: Upload to TestPyPI
- name: Upload to PyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
if [ "$(ls -A wheelhouse)" ]; then
python -m pip install --upgrade twine
python -m twine upload --repository-url https://upload.pypi.org/legacy/ wheelhouse/*
else
echo "No wheel files to upload"
fi
- name: Upload to TestPyPI
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: |
if [ "$(ls -A wheelhouse)" ]; then
python -m pip install --upgrade twine
Expand Down

0 comments on commit d5b519a

Please sign in to comment.