File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - name : Set up uv
14+ uses : astral-sh/setup-uv@v6
15+
16+ - name : Build sdist and wheel
17+ run : uv build
18+
19+ - name : Check metadata
20+ run : uvx twine check dist/*
21+
22+ - uses : actions/upload-artifact@v4
23+ with :
24+ name : dist
25+ path : dist/*
26+
27+ publish :
28+ needs : [build]
29+ runs-on : ubuntu-latest
30+ environment : pypi
31+ permissions :
32+ id-token : write # required for PyPI Trusted Publishing (OIDC)
33+ steps :
34+ - uses : actions/download-artifact@v4
35+ with :
36+ name : dist
37+ path : dist
38+
39+ # Publishes via PyPI Trusted Publishing — no token needed.
40+ # Configure the trusted publisher once at
41+ # https://pypi.org/manage/project/udar/settings/publishing/
42+ # (workflow: publish.yml, environment: pypi).
43+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments