diff --git a/.github/workflows/pythonpublish.yml b/.github/workflows/pythonpublish.yml index aae9ba7..65405f7 100644 --- a/.github/workflows/pythonpublish.yml +++ b/.github/workflows/pythonpublish.yml @@ -16,12 +16,11 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install build - - name: Build a binary wheel and a source tarball + pip install setuptools wheel twine + - name: Build and publish + env: + TWINE_USERNAME: __token__ + TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | - python -m build --sdist --wheel --outdir dist/ . - - name: Publish distribution xsum to PyPI - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.PYPI_API_TOKEN }} + python setup.py sdist bdist_wheel + twine upload dist/*