From 886a078aa7e3e2a830e7cf4e74c8d76a259f674c Mon Sep 17 00:00:00 2001 From: bra-fsn Date: Wed, 20 Dec 2023 13:54:28 +0100 Subject: [PATCH] Switch --- .github/workflows/publish-to-pypi.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index e83a804..93aa3a1 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -10,17 +10,14 @@ jobs: uses: actions/setup-python@v1 with: python-version: '3.x' - - name: Install wheel - run: >- - python -m pip install wheel --user - - name: Build a source tarball - run: >- - python setup.py sdist - - name: Build an universal wheel - run: >- - python setup.py bdist_wheel --universal + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build --sdist --wheel - name: Publish distribution to PyPI if: startsWith(github.event.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.pypi_token }}