File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 - name : List downloaded artifacts
7979 run : ls -R dist/
8080 - name : Publish to TestPyPI
81+ id : publish-testpypi
82+ continue-on-error : true
8183 uses : pypa/gh-action-pypi-publish@release/v1
8284 with :
8385 repository-url : https://test.pypi.org/legacy/
8486 skip-existing : true
8587 verbose : true
88+ - name : Display error message on publish failure
89+ if : steps.publish-testpypi.outcome == 'failure'
90+ run : |
91+ echo "::error::Failed to publish to TestPyPI"
92+ echo ""
93+ echo "⚠️ TestPyPI Publish Failed"
94+ echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
95+ echo ""
96+ echo "This may be due to TestPyPI storage limits."
97+ echo "See: https://docs.pypi.org/project-management/storage-limits"
98+ echo ""
99+ echo "To resolve this issue, use the pypi-cleanup utility to clean up old TestPyPI artifacts:"
100+ echo "https://pypi.org/project/pypi-cleanup/"
101+ echo ""
102+ echo " uvx pypi-cleanup --package pyiceberg --host https://test.pypi.org/ \\"
103+ echo " --verbose -d 10 --do-it --username <username>"
104+ echo ""
105+ echo "Requirements:"
106+ echo " • Must be a maintainer for pyiceberg on TestPyPI"
107+ echo " (https://test.pypi.org/project/pyiceberg)"
108+ echo " • Requires TestPyPI password and 2FA"
109+ echo " • ⚠️ ONLY do this for TestPyPI, NOT for production PyPI!"
110+ echo ""
111+ echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
112+ exit 1
You can’t perform that action at this time.
0 commit comments