Skip to content

Commit

Permalink
modernize distribution builds (#734)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
dimbleby authored Aug 17, 2024
1 parent db8eefd commit b2cbfb0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit b2cbfb0

Please sign in to comment.