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+ * .local.json
Original file line number Diff line number Diff line change 44 release :
55 types : [created]
66
7- env :
8- UV_LOCKED : true # Assert that the `uv.lock` will remain unchanged
9-
107jobs :
11- deploy :
12- runs-on : ubuntu-latest
8+ build :
9+ runs-on : ubuntu-24.04
1310 steps :
1411 - uses : actions/checkout@v6
15-
16- - name : Install uv and set the python version
17- uses : astral-sh/setup-uv@v7
12+ - name : Install uv and set the Python version
13+ uses : astral-sh/setup-uv@v8
1814 with :
19- # It is considered best practice to pin to a specific uv version.
20- version : " 0.11.6"
21- python-version : ${{ matrix.python-version }}
22-
15+ version : " 0.11.7"
16+ python-version : " 3.x"
2317 - name : Build package
2418 run : uv build
25-
26- - name : Publish package
27- run : uv publish
2819 env :
29- UV_PUBLISH_USERNAME : ${{ secrets.FLIT_USERNAME }}
30- UV_PUBLISH_PASSWORD : ${{ secrets.FLIT_PASSWORD }}
20+ UV_LOCKED : true
21+ - name : Upload dist artifact
22+ uses : actions/upload-artifact@v4
23+ with :
24+ name : dist
25+ path : dist/
26+
27+ publish :
28+ needs : build
29+ runs-on : ubuntu-24.04
30+ environment : pypi
31+ permissions :
32+ id-token : write
33+ steps :
34+ - name : Download dist artifact
35+ uses : actions/download-artifact@v4
36+ with :
37+ name : dist
38+ path : dist/
39+ - name : Publish package distributions to PyPI
40+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments