Skip to content

Commit b2cbfb0

Browse files
authored
modernize distribution builds (#734)
* modernize distribution builds * use release/v1 of gh-action-pypi-publish <https://github.com/pypa/gh-action-pypi-publish/tree/v1.9.0?tab=readme-ov-file#-master-branch-sunset-> > 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.
1 parent db8eefd commit b2cbfb0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,16 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install -U pip
26-
python -m pip install -U setuptools twine wheel
26+
python -m pip install -U build twine
2727
2828
- name: Build package
2929
run: |
30-
python setup.py --version
31-
python setup.py sdist --format=gztar bdist_wheel
30+
python -m build
3231
twine check dist/*
3332
3433
- name: Upload packages to Jazzband
3534
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
36-
uses: pypa/gh-action-pypi-publish@master
35+
uses: pypa/gh-action-pypi-publish@release/v1
3736
with:
3837
user: jazzband
3938
password: ${{ secrets.JAZZBAND_RELEASE_KEY }}

0 commit comments

Comments
 (0)