Skip to content

Commit 67ca0f5

Browse files
authored
Change PYPI_API_TOKEN and improve error logging
Updated PYPI_API_TOKEN to use OMNIPKG_DEPLOY_KEY instead of PYPI_API_TOKEN. Enhanced error logging for twine upload failures.
1 parent 06760f0 commit 67ca0f5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/backfill_wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Run backfill
2424
env:
2525
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
26+
PYPI_API_TOKEN: ${{ secrets.OMNIPKG_DEPLOY_KEY }}
2727
REPO: ${{ github.repository }}
2828
DRY_RUN: ${{ inputs.dry_run }}
2929
MAX_PAGES: ${{ inputs.max_pages }}
@@ -334,7 +334,9 @@ jobs:
334334
print(f" ✅ uploaded {len(whl_files)} wheels for {version}")
335335
pypi_uploaded += len(whl_files)
336336
else:
337-
print(f" ❌ twine failed: {result.stderr[-500:]}")
337+
print(f" ❌ twine failed (rc={result.returncode})")
338+
print(f" STDOUT: {result.stdout[-2000:]}")
339+
print(f" STDERR: {result.stderr[-2000:]}")
338340
pypi_failed += len(whl_files)
339341
340342
if not dry_run:

0 commit comments

Comments
 (0)