fix: allow failed pypi publish

This commit is contained in:
Greyson LaLonde
2025-10-03 19:25:14 -04:00
committed by GitHub
parent 38bc5a9dc4
commit 94cbd20bb3

View File

@@ -65,11 +65,19 @@ jobs:
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
failed=0
for package in dist/*; do
if [[ "$package" == *"crewai_devtools"* ]]; then
echo "Skipping private package: $package"
continue
fi
echo "Publishing $package"
uv publish "$package"
if ! uv publish "$package"; then
echo "Failed to publish $package"
failed=1
fi
done
if [ $failed -eq 1 ]; then
echo "Some packages failed to publish"
exit 1
fi