Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/nightly-pypi-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,35 @@ jobs:
- name: List downloaded artifacts
run: ls -R dist/
- name: Publish to TestPyPI
id: publish-testpypi
continue-on-error: true
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
verbose: true
- name: Display error message on publish failure
if: steps.publish-testpypi.outcome == 'failure'
run: |
echo "::error::Failed to publish to TestPyPI"
echo ""
echo "⚠️ TestPyPI Publish Failed"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo "This may be due to TestPyPI storage limits."
echo "See: https://docs.pypi.org/project-management/storage-limits"
echo ""
echo "To resolve this issue, use the pypi-cleanup utility to clean up old TestPyPI artifacts:"
echo "https://pypi.org/project/pypi-cleanup/"
echo ""
echo " uvx pypi-cleanup --package pyiceberg --host https://test.pypi.org/ \\"
echo " --verbose -d 10 --do-it --username <username>"
echo ""
echo "Requirements:"
echo " • Must be a maintainer for pyiceberg on TestPyPI"
echo " (https://test.pypi.org/project/pyiceberg)"
echo " • Requires TestPyPI password and 2FA"
echo " • ⚠️ ONLY do this for TestPyPI, NOT for production PyPI!"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
exit 1