Skip to content

Commit b9f17ad

Browse files
committed
Update build command for pypi upload
1 parent 8c163ab commit b9f17ad

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/python-release.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,28 @@ jobs:
1818
- name: Setup Python
1919
uses: actions/setup-python@v5
2020
with:
21-
python-version: "3.x"
21+
python-version: "3.10"
2222

2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install --upgrade setuptools wheel twine
26+
python -m pip install --upgrade build setuptools wheel twine
27+
2728
- name: Build wheel
2829
run: |
29-
python setup.py build bdist_wheel
30+
python -m build --wheel
31+
32+
# Upload the built pip packages so we can inspect them
33+
- name: Upload packages.
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: pip-packages
37+
path: |
38+
dist/casement-*.whl
39+
dist/casement-*.tar.gz
40+
# This is only used if there is a problem with the next step
41+
retention-days: 1
42+
3043
- name: Publish to PyPI
3144
env:
3245
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

0 commit comments

Comments
 (0)