Skip to content

Commit bb9d795

Browse files
authored
Merge pull request #5 from getlago/fix/publish-uv-build
ci: build dists with `uv build` instead of system pip install
2 parents b4ba5fa + 3086320 commit bb9d795

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ jobs:
8484
fi
8585
echo "Tag $TAG matches pyproject version $PKG"
8686
- name: Build distributions
87-
run: |
88-
uv pip install --system build
89-
python -m build
87+
# `uv build` produces the sdist + wheel into dist/ using the project's
88+
# build backend — no need to pip-install `build` into the runner's
89+
# system Python (which is PEP 668 externally-managed and rejects it).
90+
run: uv build
9091
- name: Upload dist artifacts
9192
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
9293
with:

0 commit comments

Comments
 (0)