Skip to content

Commit c554e74

Browse files
committed
build: create binary wheel and a source tarball
1 parent 961a3f2 commit c554e74

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/release_pypi.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ jobs:
2525

2626
- name: Install dependencies
2727
run: |
28-
pip install setuptools twine
28+
pip install setuptools build
2929
30-
- name: Build
31-
run: |
32-
python setup.py sdist
30+
- name: Build a binary wheel and a source tarball
31+
run: python3 -m build
32+
33+
- name: Store the distribution packages
34+
uses: actions/upload-artifact@v3
35+
with:
36+
name: python-package-distributions
37+
path: dist/
3338

34-
- name: Publish to PyPi
39+
- name: Publish distribution 📦 to PyPI
3540
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
user: __token__
43+
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)