File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed
Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ version_toml = [
149149major_on_zero = false
150150branch = " main"
151151changelog_file = " CHANGELOG.md"
152- build_command = " uv build"
152+ build_command = " pip install build && python -m build"
153153dist_path = " dist/"
154154upload_to_pypi = true
155155commit_message = " chore(release): {version} [skip ci]"
You can’t perform that action at this time.
0 commit comments