Skip to content

Commit 8200dfe

Browse files
committed
CI: Fix packaging by using hatch build instead of uv build
- Using `uv build` creates a wheel package without any code. - Use Twine for validating the package.
1 parent 7df4ffb commit 8200dfe

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,25 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v6
1717
with:
18+
fetch-depth: 0
19+
fetch-tags: true
1820
persist-credentials: false
1921

2022
- name: Set up uv
2123
uses: astral-sh/setup-uv@v7
24+
with:
25+
activate-environment: true
26+
enable-cache: true
27+
python-version: "3.14"
28+
29+
- name: Set up Hatch and Twine
30+
run: uv pip install hatch twine
2231

2332
- name: Build package
24-
run: uv build
33+
run: hatch build
34+
35+
- name: Validate package
36+
run: twine check dist/*
2537

2638
- name: Publish package to PyPI
2739
if: startsWith(github.event.ref, 'refs/tags')

0 commit comments

Comments
 (0)