Skip to content

Commit e29837f

Browse files
author
phernandez
committed
fix: push to pypi and github. Install uv in build_command for semantic_release
1 parent 084c008 commit e29837f

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,21 @@ jobs:
2626
with:
2727
fetch-depth: 0
2828

29-
- name: Install uv
30-
run: |
31-
curl -LsSf https://astral.sh/uv/install.sh | sh
32-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
33-
3429
- name: Python Semantic Release
30+
id: release
3531
uses: python-semantic-release/python-semantic-release@master
3632
with:
3733
github_token: ${{ secrets.GITHUB_TOKEN }}
38-
pypi_token: ${{ secrets.PYPI_TOKEN }}
39-
git_committer_name: github-actions
40-
git_committer_email: [email protected]
34+
35+
- name: Publish to PyPI
36+
uses: pypa/gh-action-pypi-publish@v1
37+
if: steps.release.outputs.released == 'true'
38+
with:
39+
password: ${{ secrets.PYPI_TOKEN }}
40+
41+
- name: Publish to GitHub Release Assets
42+
uses: python-semantic-release/[email protected]
43+
if: steps.release.outputs.released == 'true'
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
tag: ${{ steps.release.outputs.tag }}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ version_toml = [
149149
major_on_zero = false
150150
branch = "main"
151151
changelog_file = "CHANGELOG.md"
152-
build_command = "uv build"
152+
build_command = "pip install build && python -m build"
153153
dist_path = "dist/"
154154
upload_to_pypi = true
155155
commit_message = "chore(release): {version} [skip ci]"

0 commit comments

Comments
 (0)