File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,19 +22,19 @@ jobs:
2222
2323 steps :
2424 - name : Check out repository
25- uses : actions/checkout@v4
25+ uses : actions/checkout@v6
2626
2727 - name : Install Python
28- uses : actions/setup-python@v5
28+ uses : actions/setup-python@v6
2929 with :
3030 python-version : ${{ matrix.python-version }}
3131
3232 - name : Install uv
33- uses : astral-sh/setup-uv@v4
33+ uses : astral-sh/setup-uv@v6
3434 with :
3535 version : ${{ env.UV_VERSION }}
3636 enable-cache : true
37- python-version : ${{ matrix.python-version }}
37+ python-version : ${{ matrix.python-version }} # sets UV_PYTHON
3838 cache-dependency-glob : |
3939 pyproject.toml
4040 uv.lock
Original file line number Diff line number Diff line change 1+ name : Publish Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ env :
8+ PYTHON_VERSION : " 3.11"
9+ UV_VERSION : " 0.7.13"
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Check out repository
17+ uses : actions/checkout@v6
18+
19+ - name : Install Python
20+ uses : actions/setup-python@v6
21+ with :
22+ python-version : ${{ env.PYTHON_VERSION }}
23+
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v6
26+ with :
27+ version : ${{ env.UV_VERSION }}
28+ enable-cache : true
29+ python-version : ${{ env.PYTHON_VERSION }} # sets UV_PYTHON
30+ cache-dependency-glob : |
31+ pyproject.toml
32+ uv.lock
33+
34+ - name : Install dependencies
35+ run : |
36+ uv sync --frozen
37+
38+ - name : Build package
39+ run : uv build
40+
41+ - name : Upload build
42+ uses : actions/upload-artifact@v4
43+ with :
44+ name : dist
45+ path : dist/
46+
47+ publish :
48+ needs : build
49+ runs-on : ubuntu-latest
50+
51+ steps :
52+ - name : Check out repository
53+ uses : actions/checkout@v6
54+
55+ - name : Install Python
56+ uses : actions/setup-python@v6
57+ with :
58+ python-version : ${{ env.PYTHON_VERSION }}
59+
60+ - name : Install uv
61+ uses : astral-sh/setup-uv@v6
62+ with :
63+ version : ${{ env.UV_VERSION }}
64+ enable-cache : true
65+ python-version : ${{ env.PYTHON_VERSION }} # sets UV_PYTHON
66+ cache-dependency-glob : |
67+ pyproject.toml
68+ uv.lock
69+
70+ - name : Install dependencies
71+ run : |
72+ uv sync --frozen
73+
74+ - name : Download build artifacts
75+ uses : actions/download-artifact@v4
76+ with :
77+ name : dist
78+ path : dist/
79+
80+ - name : Publish to PyPI
81+ env :
82+ UV_PUBLISH_TOKEN : ${{ secrets.PYPI }}
83+ run : uv publish
Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ jobs:
2121
2222 steps :
2323 - name : Check out repository
24- uses : actions/checkout@v4
24+ uses : actions/checkout@v6
2525
2626 - name : Install Python
27- uses : actions/setup-python@v5
27+ uses : actions/setup-python@v6
2828 with :
2929 python-version : ${{ matrix.python-version }}
3030
3131 - name : Install uv
32- uses : astral-sh/setup-uv@v4
32+ uses : astral-sh/setup-uv@v6
3333 with :
3434 version : ${{ env.UV_VERSION }}
3535 enable-cache : true
36- python-version : ${{ matrix.python-version }}
36+ python-version : ${{ matrix.python-version }} # sets UV_PYTHON
3737 cache-dependency-glob : |
3838 pyproject.toml
3939 uv.lock
You can’t perform that action at this time.
0 commit comments