Skip to content

Commit f7fd392

Browse files
committedMar 6, 2025·
fix(ci): Improve release process
1 parent 74ed517 commit f7fd392

File tree

3 files changed

+71
-4
lines changed

3 files changed

+71
-4
lines changed
 

‎.github/workflows/release.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ jobs:
2727
enable-cache: true
2828

2929
- name: Create release
30+
id: semantic_release
31+
continue-on-error: true
3032
run: uvx python-semantic-release -vv version
3133
env:
3234
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3335

3436
- name: Publish to PyPI
35-
run: uv publish --trusted-publishing always
37+
if: steps.semantic_release.outcome == 'success'
38+
run: uv publish --trusted-publishing always

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ version_toml = [
2828
]
2929
branch = "main"
3030
changelog_file = "CHANGELOG.md"
31-
commit_message = "chore(release): {version}"
31+
commit_message = "chore(release): {version} [skip ci]"
3232
build_command = "uv build"

‎uv.lock

+66-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.