66 build :
77 name : Build distribution 📦
88 runs-on : ubuntu-latest
9-
109 steps :
11- - uses : actions/checkout@v4
12- - name : Set up Python
13- uses : actions/setup-python@v4
14- with :
15- python-version : " 3.x"
16- - name : Install pypa/build
17- run : >-
18- python3 -m
19- pip install
20- build
21- --user
22- - name : Build a binary wheel and a source tarball
23- run : python3 -m build
24- - name : Store the distribution packages
25- uses : actions/upload-artifact@v4
26- with :
27- name : python-package-distributions
28- path : dist/
10+ - uses : actions/checkout@v4
11+
12+ - name : Install uv
13+ uses : astral-sh/setup-uv@v4
14+
15+ - name : Set up Python
16+ run : uv python install 3.13
17+
18+ - name : Build distribution
19+ run : uvx --from build pyproject-build --installer uv
20+
21+ - name : Store the distribution packages
22+ uses : actions/upload-artifact@v4
23+ with :
24+ name : python-package-distributions
25+ path : dist/
2926
3027 publish-to-pypi :
31- name : >-
32- Publish Python 🐍 distribution 📦 to PyPI
28+ name : Publish Python 🐍 distribution 📦 to PyPI
3329 if : startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3430 needs :
35- - build
31+ - build
3632 runs-on : ubuntu-latest
3733 environment :
3834 name : pypi
39- url : https://pypi.org/project/dashio # Replace <package-name> with your PyPI project name
35+ url : https://pypi.org/project/dashio
4036 permissions :
4137 id-token : write # IMPORTANT: mandatory for trusted publishing
42-
4338 steps :
44- - name : Download all the dists
45- uses : actions/download-artifact@v4
46- with :
47- name : python-package-distributions
48- path : dist/
49- - name : Publish distribution 📦 to PyPI
50- uses : pypa/gh-action-pypi-publish@release/v1
39+ - name : Download all the dists
40+ uses : actions/download-artifact@v4
41+ with :
42+ name : python-package-distributions
43+ path : dist/
44+
45+ - name : Publish distribution 📦 to PyPI
46+ uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments