@@ -146,8 +146,8 @@ jobs:
146
146
submodules : recursive
147
147
- uses : actions/setup-python@v2
148
148
name : Install Python
149
- - name : Install cibuildwheel
150
- run : python -m pip install cibuildwheel==1.8.0
149
+ - name : Install cibuildwheel twine
150
+ run : python -m pip install cibuildwheel twine
151
151
- name : Install build dependencies (Macos)
152
152
run : brew install yasm automake autoconf
153
153
if : runner.os == 'macOS'
@@ -164,16 +164,16 @@ jobs:
164
164
if : " runner.os == 'Linux'"
165
165
run : python setup.py sdist
166
166
- name : Publish package to TestPyPI
167
- uses : pypa/gh-action-pypi-publish@master
167
+ # pypa/gh-action-pypi-publish@master does not work on OSX
168
168
# Alpha, Beta and dev releases contain a - in the tag.
169
169
if : contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')
170
- with :
171
- user : __token__
172
- password : ${{ secrets.TEST_PYPI_API_TOKEN }}
173
- repository_url : https://test.pypi.org/legacy/
170
+ run : twine upload --repository-url https://test.pypi.org/legacy/ dist/*
171
+ env :
172
+ TWINE_USERNAME : __token__
173
+ TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
174
174
- name : Publish package to PyPI
175
- uses : pypa/gh-action-pypi-publish@master
176
175
if : " !contains(github.ref, '-') && startsWith(github.ref, 'refs/tags')"
177
- with :
178
- user : __token__
179
- password : ${{ secrets.PYPI_API_TOKEN }}
176
+ run : twine upload dist/*
177
+ env :
178
+ TWINE_USERNAME : __token__
179
+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
0 commit comments