Skip to content

Commit 7fff3d6

Browse files
committed
CI: Add publishing to TestPyPI to validate if uploading works
1 parent dab14f7 commit 7fff3d6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release-pypi.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,13 @@ jobs:
5555
run: |
5656
uv build
5757
58+
- name: Publish package to TestPyPI
59+
run: |
60+
# `uv publish` does not understand `--skip-existing`.
61+
# https://github.com/astral-sh/uv/issues/7917
62+
# https://github.com/astral-sh/uv/issues/12369
63+
uvx twine upload --repository-url https://test.pypi.org/legacy --skip-existing dist/*
64+
5865
- name: Publish package to PyPI
5966
if: startsWith(github.event.ref, 'refs/tags')
6067
run: |

0 commit comments

Comments
 (0)