From 1e57a37eb889df13331b84a941dfd15291f08bdf Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 28 Sep 2023 12:46:13 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Update=20GH=20Action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 689c592a5..2b6f717e5 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -40,13 +40,12 @@ jobs: uses: actions/setup-python@v4 with: python-version: "3.10.x" - - name: Install dependencies + - name: Install pip, build and twine run: | - python -m pip install --upgrade pip - pip install setuptools setuptools-scm wheel twine - - name: Build a binary wheel and a source tarball - run: | - python setup.py sdist bdist_wheel + python -m pip install --upgrade --disable-pip-version-check pip + python -m pip install --upgrade build twine + - name: Build wheel and source distributions + run: python -m build - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@release/v1