Skip to content

Commit 601c9f4

Browse files
committed
Update python-publish.yml
1 parent f5604c3 commit 601c9f4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
pip install setuptools wheel twine
26+
pip install build twine
2727
28-
- name: Build and publish
28+
- name: Build package
29+
run: python -m build
30+
31+
- name: Publish to PyPI
2932
env:
3033
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
3134
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
32-
run: |
33-
python setup.py sdist bdist_wheel
34-
twine upload dist/*
35+
run: twine upload dist/*

0 commit comments

Comments
 (0)