File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : PyPIRelease
2+ # https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
3+
4+ on :
5+ release :
6+ types : [published]
7+
8+ jobs :
9+ build :
10+ name : Build distribution 📦
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v6
15+ with :
16+ persist-credentials : false
17+ - name : Install uv
18+ uses : astral-sh/setup-uv@v7
19+ with :
20+ version : " 0.9.27"
21+ - name : Build a binary wheel and a source tarball
22+ run : uv build
23+ - name : Store the distribution packages
24+ uses : actions/upload-artifact@v6
25+ with :
26+ name : python-package-distributions
27+ path : dist/
28+
29+ publish-to-pypi :
30+ name : >-
31+ Publish Python 🐍 distribution 📦 to PyPI
32+ needs :
33+ - build
34+ runs-on : ubuntu-latest
35+ environment :
36+ name : pypi_release
37+ url : https://pypi.org/p/buildingid/
38+ permissions :
39+ id-token : write # IMPORTANT: mandatory for trusted publishing
40+
41+ steps :
42+ - name : Download all the dists
43+ uses : actions/download-artifact@v7
44+ with :
45+ name : python-package-distributions
46+ path : dist/
47+ - name : Publish distribution 📦 to PyPI
48+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments