diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index bfa8a49..f652154 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -65,30 +65,25 @@ jobs: run: | python -m pip install --upgrade pip pip install -r requirements.txt + pip install twine - name: Build manylinux wheel - uses: RalfG/python-wheels-manylinux-build@v0.1 + uses: RalfG/python-wheels-manylinux-build@v0.2.2-manylinux2010_x86_64 with: python-versions: ${{ matrix.python-version.bldstring }} build-requirements: 'cython' - - - name: Delete non-wscodec binaries + + - name: Use Twine to upload packages + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.pypi_password }} run: | - cd wheelhouse - ls -1 | grep -v 'wscodec.*'${{ matrix.python-version.bldstring }}'-manylinux1_x86_64' | sudo xargs rm -f - - - name: Publish packages to PyPI if commit is Git tagged. - if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.pypi_password }} - packages_dir: wheelhouse/ + twine upload wheelhouse/*-manylinux*.whl release_source: runs-on: ubuntu-latest needs: build - + if: startsWith(github.event.ref, 'refs/tags') steps: - uses: actions/checkout@v1 - name: Set up Python 3.8