Skip to content

Commit 0fb9dcb

Browse files
Update pythonpackage.yml
1 parent 0d01b71 commit 0fb9dcb

1 file changed

Lines changed: 8 additions & 13 deletions

File tree

.github/workflows/pythonpackage.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,25 +65,20 @@ jobs:
6565
run: |
6666
python -m pip install --upgrade pip
6767
pip install -r requirements.txt
68+
pip install twine
6869
6970
- name: Build manylinux wheel
70-
uses: RalfG/python-wheels-manylinux-build@v0.2.2
71+
uses: RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64
7172
with:
7273
python-versions: ${{ matrix.python-version.bldstring }}
7374
build-requirements: 'cython'
74-
75-
- name: Delete non-wscodec binaries
75+
76+
- name: Use Twine to upload packages
77+
env:
78+
TWINE_USERNAME: __token__
79+
TWINE_PASSWORD: ${{ secrets.pypi_password }}
7680
run: |
77-
cd wheelhouse
78-
ls -1 | grep -v 'wscodec.*'${{ matrix.python-version.bldstring }}'-manylinux1_x86_64' | sudo xargs rm -f
79-
cd ..
80-
81-
- name: Publish packages to PyPI if commit is Git tagged.
82-
uses: pypa/gh-action-pypi-publish@master
83-
with:
84-
user: __token__
85-
password: ${{ secrets.pypi_password }}
86-
packages_dir: wheelhouse/
81+
twine upload wheelhouse/*-manylinux*.whl
8782
8883
release_source:
8984
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)