diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 8d00f198..14d86d2c 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -19,13 +19,9 @@ jobs: uses: actions/setup-python@v6 with: python-version: "3.x" - - name: Install wheel - run: python -m pip install --user --upgrade wheel - - name: Install twine - run: python -m pip install --user --upgrade twine - - name: Install setuptools - run: python -m pip install --user --upgrade setuptools + - name: Install build tooling + run: python -m pip install --user --upgrade build twine - name: Build a binary wheel and a source tarball - run: python setup.py sdist bdist_wheel + run: python -m build --sdist --wheel --outdir dist/ - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1