Skip to content

ci: Add environment to deploy job for PyPI trusted publishing - #43

Merged
rapsealk merged 2 commits into
mainfrom
fix/pypi-trusted-publishing-environment
Mar 30, 2026
Merged

ci: Add environment to deploy job for PyPI trusted publishing#43
rapsealk merged 2 commits into
mainfrom
fix/pypi-trusted-publishing-environment

Conversation

@rapsealk

Copy link
Copy Markdown
Member

Summary

  • The deploy-to-pypi job in the GitHub Actions workflow was missing the environment field, which caused PyPI trusted publishing to fail because the OIDC token's environment claim was absent.
  • Added environment: release (with url https://pypi.org/project/aioraft-ng/) to the job so the OIDC token includes the required environment claim that matches the PyPI trusted publisher configuration.

Closes #42

Test plan

  • Verify the workflow YAML is valid
  • Push a tag and confirm the deploy job successfully publishes to PyPI via trusted publishing

🤖 Generated with Claude Code

rapsealk and others added 2 commits March 30, 2026 10:39
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The deploy-to-pypi job was missing the `environment` field, causing
the OIDC token's environment claim to be MISSING. PyPI's trusted
publisher requires this to match the configured environment name.

Closes #42

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rapsealk rapsealk changed the title fix: Add environment to deploy job for PyPI trusted publishing ci: Add environment to deploy job for PyPI trusted publishing Mar 30, 2026
@rapsealk
rapsealk merged commit e1fd063 into main Mar 30, 2026
9 checks passed
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.

fix: PyPI trusted publishing fails due to missing environment in release workflow

1 participant