Skip to content

Commit 6c0fc87

Browse files
committed
Use uv for publish
1 parent 75aa605 commit 6c0fc87

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/python-publish.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v5
14-
- name: Set up Python
15-
uses: actions/setup-python@v6
14+
- name: Install uv
15+
uses: astral-sh/setup-uv@v7
1616
with:
17-
python-version: '3.x'
18-
- name: Install dependencies
19-
run: |
20-
python -m pip install --upgrade pip
21-
pip install build setuptools wheel twine
22-
- name: Build and publish
17+
python-version: "3.13"
18+
- name: Build package
19+
run: uv build
20+
- name: Publish to PyPI
2321
env:
24-
TWINE_USERNAME: __token__
25-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26-
run: |
27-
python -m build
28-
twine upload dist/*
22+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_PASSWORD }}
23+
run: uv publish

0 commit comments

Comments
 (0)