Skip to content

Commit

Permalink
fix: push to pypi and github. Install uv in build_command for semanti…
Browse files Browse the repository at this point in the history
…c_release
  • Loading branch information
phernandez committed Nov 15, 2024
1 parent 084c008 commit e29837f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,21 @@ jobs:
with:
fetch-depth: 0

- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
git_committer_name: github-actions
git_committer_email: [email protected]

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1
if: steps.release.outputs.released == 'true'
with:
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish to GitHub Release Assets
uses: python-semantic-release/[email protected]
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ version_toml = [
major_on_zero = false
branch = "main"
changelog_file = "CHANGELOG.md"
build_command = "uv build"
build_command = "pip install build && python -m build"
dist_path = "dist/"
upload_to_pypi = true
commit_message = "chore(release): {version} [skip ci]"

0 comments on commit e29837f

Please sign in to comment.