Skip to content

Commit 8c5d17c

Browse files
committed
fix uv publish syntax
Changed --repository to --publish-url for TestPyPI Changed --dry-run to --check-url for dry run mode (this will check if the package exists but won't upload) Left the build-only mode unchanged as it was working correctly Left the release mode with just --token as it uses the default PyPI URL Signed-off-by: Teo <teocns@gmail.com>
1 parent 23a2293 commit 8c5d17c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
7070
if [[ "${{ github.event.inputs.test_mode }}" == "dry-run" ]]; then
7171
echo "🔍 Performing dry run..."
72-
uv publish --dry-run
72+
uv publish --check-url https://pypi.org/pypi
7373
elif [[ "${{ github.event.inputs.test_mode }}" == "testpypi" ]]; then
74-
uv publish --repository https://test.pypi.org/legacy/ --token $TEST_PYPI_TOKEN
74+
uv publish --publish-url https://test.pypi.org/legacy/ --token $TEST_PYPI_TOKEN
7575
elif [[ "${{ github.event.inputs.test_mode }}" == "build-only" ]]; then
7676
echo "✅ Build completed successfully. Skipping publish."
7777
elif [[ "${{ github.event_name }}" == "release" ]]; then

0 commit comments

Comments
 (0)