1919 - " v*.*.*"
2020
2121jobs :
22- build-pypi-distribs :
23- name : Build and publish library to PyPI
22+ build-pypi-distribs-wheel :
23+ name : Build and publish wheels to PyPI
2424 runs-on : ubuntu-24.04
2525
2626 strategy :
@@ -39,12 +39,45 @@ jobs:
3939 - name : Install pypa/build and twine
4040 run : python -m pip install --user --upgrade build twine pkginfo
4141
42- - name : Build a binary wheel and a source tarball
43- run : python -m build --wheel --sdist -- outdir dist/
42+ - name : Build a binary wheel
43+ run : python -m build --wheel --outdir dist/
4444
45- - name : Validate wheel and sdis for Pypi
45+ - name : Validate wheel for Pypi
4646 run : python -m twine check dist/*
4747
48+ - name : Upload built archives
49+ uses : actions/upload-artifact@v4
50+ with :
51+ name : pypi_archives
52+ path : dist-${{ matrix.python-version }}/*
53+
54+
55+ build-pypi-distribs-sdist :
56+ name : Build and publish sdist to PyPI
57+ runs-on : ubuntu-24.04
58+
59+ strategy :
60+ matrix :
61+ pyver : ["3.13"]
62+
63+ steps :
64+ - name : Checkout code
65+ uses : actions/checkout@v4
66+
67+ - name : Set up Python
68+ uses : actions/setup-python@v5
69+ with :
70+ python-version : ${{ matrix.python-version }}
71+
72+ - name : Install pypa/build and twine
73+ run : python -m pip install --user --upgrade build twine pkginfo
74+
75+ - name : Build a binary wheel
76+ run : python -m build --wheel --outdir dist/
77+
78+ - name : Validate wheel for Pypi
79+ run : python -m twine check dist*
80+
4881 - name : Upload built archives
4982 uses : actions/upload-artifact@v4
5083 with :
5588 create-gh-release :
5689 name : Create GH release
5790 needs :
58- - build-pypi-distribs
91+ - build-pypi-distribs-wheel
92+ - build-pypi-distribs-sdist
5993 runs-on : ubuntu-24.04
6094
6195 steps :
0 commit comments