Skip to content

Commit cde9016

Browse files
committed
Use simple twine upload
1 parent 5752b7f commit cde9016

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ jobs:
146146
submodules: recursive
147147
- uses: actions/setup-python@v2
148148
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
151151
- name: Install build dependencies (Macos)
152152
run: brew install yasm automake autoconf
153153
if: runner.os == 'macOS'
@@ -164,16 +164,16 @@ jobs:
164164
if: "runner.os == 'Linux'"
165165
run: python setup.py sdist
166166
- 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
168168
# Alpha, Beta and dev releases contain a - in the tag.
169169
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 }}
174174
- name: Publish package to PyPI
175-
uses: pypa/gh-action-pypi-publish@master
176175
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

Comments
 (0)