Skip to content

Commit 4a1abd5

Browse files
committed
fix: Handle existing version on Test PyPI gracefully
1 parent 04258cd commit 4a1abd5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/test-release.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,15 @@ jobs:
6060
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
6161
run: |
6262
echo "📦 Uploading to Test PyPI..."
63-
twine upload --repository testpypi dist/*
64-
echo "✅ Package uploaded to https://test.pypi.org/project/crawl4ai/"
63+
twine upload --repository testpypi dist/* || {
64+
if [ $? -eq 1 ]; then
65+
echo "⚠️ Upload failed - likely version already exists on Test PyPI"
66+
echo "Continuing anyway for test purposes..."
67+
else
68+
exit 1
69+
fi
70+
}
71+
echo "✅ Test PyPI step complete"
6572
6673
- name: Set up Docker Buildx
6774
uses: docker/setup-buildx-action@v3

0 commit comments

Comments
 (0)