We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da8c320 commit c330e3aCopy full SHA for c330e3a
.github/workflows/build_wheels.yml
@@ -162,10 +162,22 @@ jobs:
162
echo "Contents of wheelhouse:"
163
ls -l wheelhouse/
164
165
- - name: Upload to TestPyPI
+ - name: Upload to PyPI
166
env:
167
TWINE_USERNAME: "__token__"
168
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
169
+ run: |
170
+ if [ "$(ls -A wheelhouse)" ]; then
171
+ python -m pip install --upgrade twine
172
+ python -m twine upload --repository-url https://upload.pypi.org/legacy/ wheelhouse/*
173
+ else
174
+ echo "No wheel files to upload"
175
+ fi
176
+
177
+ - name: Upload to TestPyPI
178
+ env:
179
+ TWINE_USERNAME: "__token__"
180
+ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
181
run: |
182
if [ "$(ls -A wheelhouse)" ]; then
183
python -m pip install --upgrade twine
0 commit comments