Skip to content

fix: restore PyPI token publish and limit non-main CI - #8

Merged
johanbeytell1 merged 1 commit into
masterfrom
arena/d9aff8eb-deepdefend
Oct 31, 2026
Merged

johanbeytell1 merged 1 commit into
masterfrom
arena/d9aff8eb-deepdefend

Conversation

@johanbeytell1

Copy link
Copy Markdown
Member

Why

The v0.2.0 publish run failed with invalid-publisher / Publisher with matching claims was not found. The 0.2.0 workflow switched to Trusted Publishing (OIDC), but this project has never had a matching publisher on PyPI. 0.1.x releases used secrets.PYPI_API_TOKEN.

Changes

  • Publish with __token__ + PYPI_API_TOKEN again (attestations off; they need OIDC).
  • Keep the tag/version check, test gate, SHA-pinned actions, and pypi environment.
  • skip-existing: true so a re-run of v0.2.0 after a partial upload is safe.
  • CI: full Python 3.10–3.12 matrix and the packaging job only on master/main. PRs run lint + Python 3.12.
  • PRs only trigger when they target master/main.

After merge

Re-run the failed v0.2.0 workflow (or push the tag again) so 0.2.0 lands on PyPI. Confirm PYPI_API_TOKEN is still a repo secret.

Trusted Publishing fails because PyPI has no matching OIDC publisher.
Restore token auth used by 0.1.x, and run the full test matrix plus
the packaging job only on master/main.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
@johanbeytell1
johanbeytell1 merged commit d005ee1 into master Oct 31, 2026
2 checks passed
@johanbeytell1
johanbeytell1 deleted the arena/d9aff8eb-deepdefend branch October 31, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant