Skip to content

Commit 8b74b4f

Browse files
authored
Enhance TestPyPI upload workflow with build steps
1 parent 1842678 commit 8b74b4f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/TestPyPI_Upload.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: "3.x"
23+
- name: Install pypa/build
24+
run: >-
25+
python3 -m
26+
pip install
27+
build
28+
--user
29+
- name: Build a binary wheel and a source tarball
30+
run: python3 -m build
31+
- name: Store the distribution packages
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: python-package-distributions
35+
path: dist/
2336

2437
publish-to-testpypi:
2538
name: Publish Python 🐍 distribution 📦 to TestPyPI

0 commit comments

Comments
 (0)