Skip to content

devops: publish to PyPI from GitHub Actions with trusted publishing - #3252

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:publish-trusted
Oct 13, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:publish-trusted

Conversation

@pavelfeldman

@pavelfeldman Pavel Feldman (pavelfeldman) commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • New .github/workflows/publish.yml builds the wheels of a release tag and uploads them to PyPI with trusted publishing, as microsoft/autogen does. It runs when a release is published, or by hand with a tag.
  • Only the upload job, in the pypi environment, gets id-token: write.
  • Remove the Azure publish pipeline. For v1.64.0 it failed in npm pack of the beta driver from the DevDiv feed; the same build works from public npm.

Needs, before the first run:

  • PyPI trusted publisher: owner microsoft, repository playwright-python, workflow publish.yml, environment pypi.
  • A pypi environment in this repo, with required reviewers.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't delete it yet, we don't know if gha will work out. You can disable the trigger for now.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same effort as restoring.

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 27e324a into microsoft:main Oct 13, 2026
29 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.

2 participants