File tree 1 file changed +14
-8
lines changed
1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -168,14 +168,6 @@ jobs:
168
168
if : ${{ !startsWith(matrix.os, 'ubuntu') || matrix.python-version != '3.9' }}
169
169
run : pytest -s -v --junitxml=junit/test-results.xml tests
170
170
171
- - name : Upload to PyPi
172
- if : startsWith(github.ref, 'refs/tags/')
173
- run : twine upload --skip-existing dist/*
174
- env :
175
- TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
176
- TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
177
- TWINE_REPOSITORY_URL : " https://upload.pypi.org/legacy/"
178
-
179
171
- uses : ncipollo/release-action@v1
180
172
if : startsWith(github.ref, 'refs/tags/')
181
173
with :
@@ -185,3 +177,17 @@ jobs:
185
177
generateReleaseNotes : true
186
178
omitBodyDuringUpdate : true
187
179
omitNameDuringUpdate : true
180
+
181
+ - name : Upload to PyPi
182
+ if : startsWith(github.ref, 'refs/tags/')
183
+ run : |
184
+ if [[ $OS == ubuntu* ]]
185
+ then
186
+ twine upload --skip-existing dist/*
187
+ else
188
+ twine upload --skip-existing dist/*.whl
189
+ fi
190
+ env :
191
+ TWINE_USERNAME : ${{ secrets.TWINE_USERNAME }}
192
+ TWINE_PASSWORD : ${{ secrets.TWINE_PASSWORD }}
193
+ TWINE_REPOSITORY_URL : " https://upload.pypi.org/legacy/"
You can’t perform that action at this time.
0 commit comments