From b2cbfb06a728e075c50646fad6cc38483715351a Mon Sep 17 00:00:00 2001 From: David Hotham Date: Sat, 17 Aug 2024 03:20:35 +0100 Subject: [PATCH] modernize distribution builds (#734) * modernize distribution builds * use release/v1 of gh-action-pypi-publish > The master branch version has been sunset. Please, change the GitHub > Action version you use from master to release/v1 or use an exact tag, or > opt-in to use a full Git commit SHA and Dependabot. --- .github/workflows/release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d2ccf7a..7443eabc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,17 +23,16 @@ jobs: - name: Install dependencies run: | python -m pip install -U pip - python -m pip install -U setuptools twine wheel + python -m pip install -U build twine - name: Build package run: | - python setup.py --version - python setup.py sdist --format=gztar bdist_wheel + python -m build twine check dist/* - name: Upload packages to Jazzband if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: jazzband password: ${{ secrets.JAZZBAND_RELEASE_KEY }}