File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ name : publish to PyPI 🐍
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ pypi-publish :
9+ name : upload release to PyPI
10+ runs-on : ubuntu-latest
11+ # Specifying a GitHub environment is optional, but strongly encouraged
12+ environment : publish_to_pypi
13+ permissions :
14+ # IMPORTANT: this permission is mandatory for trusted publishing
15+ id-token : write
16+ contents : read
17+ steps :
18+ - uses : actions/checkout@v4
19+ - name : Set up Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : ' 3.13'
23+ - name : Install uv
24+ uses : astral-sh/setup-uv@v5
25+ - name : build package distributions
26+ run : uv build
27+ - name : Publish package distributions to PyPI
28+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments