|
43 | 43 | if: github.repository == 'apache/iceberg-rust' # Only run for apache repo |
44 | 44 | runs-on: ubuntu-latest |
45 | 45 | steps: |
46 | | - - uses: actions/checkout@v5 |
| 46 | + - uses: actions/checkout@v6 |
47 | 47 |
|
48 | 48 | - uses: ./.github/actions/overwrite-package-version # Overwrite package version with timestamp |
49 | 49 | with: |
|
78 | 78 | } |
79 | 79 | - { os: ubuntu-latest, target: "armv7l" } |
80 | 80 | steps: |
81 | | - - uses: actions/checkout@v5 |
| 81 | + - uses: actions/checkout@v6 |
82 | 82 |
|
83 | 83 | - uses: ./.github/actions/overwrite-package-version # Overwrite package version with timestamp |
84 | 84 | with: |
@@ -128,9 +128,36 @@ jobs: |
128 | 128 | - name: List downloaded artifacts |
129 | 129 | run: ls -R bindings/python/dist |
130 | 130 | - name: Publish to TestPyPI |
| 131 | + id: publish-testpypi |
| 132 | + continue-on-error: true |
131 | 133 | uses: pypa/gh-action-pypi-publish@release/v1 |
132 | 134 | with: |
133 | 135 | repository-url: https://test.pypi.org/legacy/ |
134 | 136 | skip-existing: true |
135 | 137 | packages-dir: bindings/python/dist |
136 | 138 | verbose: true |
| 139 | + - name: Display error message on publish failure |
| 140 | + if: steps.publish-testpypi.outcome == 'failure' |
| 141 | + run: | |
| 142 | + echo "::error::Failed to publish to TestPyPI" |
| 143 | + echo "" |
| 144 | + echo "⚠️ TestPyPI Publish Failed" |
| 145 | + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" |
| 146 | + echo "" |
| 147 | + echo "This may be due to TestPyPI storage limits." |
| 148 | + echo "See: https://docs.pypi.org/project-management/storage-limits" |
| 149 | + echo "" |
| 150 | + echo "To resolve this issue, use the pypi-cleanup utility to clean up old TestPyPI artifacts:" |
| 151 | + echo "https://pypi.org/project/pypi-cleanup/" |
| 152 | + echo "" |
| 153 | + echo " uvx pypi-cleanup --package pyiceberg-core --host https://test.pypi.org/ \\" |
| 154 | + echo " --verbose -d 10 --do-it --username <username>" |
| 155 | + echo "" |
| 156 | + echo "Requirements:" |
| 157 | + echo " • Must be a maintainer for pyiceberg-core on TestPyPI" |
| 158 | + echo " (https://test.pypi.org/project/pyiceberg-core)" |
| 159 | + echo " • Requires TestPyPI password and 2FA" |
| 160 | + echo " • ⚠️ ONLY do this for TestPyPI, NOT for production PyPI!" |
| 161 | + echo "" |
| 162 | + echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" |
| 163 | + exit 1 |
0 commit comments