Skip to content

Commit 166bab3

Browse files
committed
use pypa official GH action to publish
1 parent 2ff1fdb commit 166bab3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,13 @@ jobs:
106106
body_path: "${{ runner.temp }}/release_notes.md"
107107
draft: false
108108
prerelease: ${{ env.IS_PRERELEASE }}
109-
- name: Build and publish
109+
- name: Build sdist
110110
run: |
111111
if [ "$IS_PRERELEASE" == true ]; then
112112
echo "DEBUG: This is a pre-release"
113113
else
114114
echo "DEBUG: This is a final release"
115115
fi
116-
python setup.py sdist
117-
twine upload dist/*.whl dist/*.tar.gz
116+
pipx run build --sdist
117+
- name: Publish package distributions to PyPI
118+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)