Skip to content

Commit 5a963e4

Browse files
authored
Publish with uv (#19)
1 parent 7bf8e0a commit 5a963e4

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,21 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343

44-
- name: Set up Python ${{ env.python-version }}
45-
uses: actions/setup-python@v5
46-
47-
- name: Build and check build
44+
- name: Install uv and Python
45+
uses: astral-sh/setup-uv@v6
46+
with:
47+
python-version: ${{ env.python-version }}
48+
enable-cache: true
49+
activate-environment: true
50+
cache-dependency-glob: '${{ inputs.dependency-file }}'
51+
52+
- name: Build
4853
run: |
49-
python -m build
50-
twine check dist/*
54+
uv build
5155
5256
- name: Publish
5357
if: ${{ success() }}
5458
env:
55-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
56-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
59+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_PASSWORD }}
5760
run: |
58-
twine upload dist/*
61+
uv publish

0 commit comments

Comments
 (0)