Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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