Skip to content

Commit c8c9cdc

Browse files
committed
fix: Adjust exit disposition of uv publish dynamically
1 parent 2c1bddc commit c8c9cdc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- '*'
77

8+
env:
9+
EXIT_ON_PUBLISH_FAILURE: 1
10+
811
jobs:
912
publish:
1013
name: Publish Release
@@ -36,9 +39,8 @@ jobs:
3639
- name: Build Package
3740
run: uv build
3841

39-
# TODO: Update the PyPi token to push to PyPi.
4042
- name: Publish to PyPi
41-
run: uv publish
43+
run: uv publish || exit $EXIT_ON_PUBLISH_FAILURE
4244

4345
- name: Release
4446
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2

0 commit comments

Comments
 (0)