Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use trusted publishing for PyPI #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use trusted publishing for PyPI #54

wants to merge 1 commit into from

Conversation

robin-nitrokey
Copy link
Member

This patch changes the CD workflow to use trusted publishing to PyPI. The main changes are:

  • The CD workflow is always executed and always publishes to TestPyPI.
  • For releases, the workflow also publishes to PyPI.
  • Instead of using access tokens, we use a GitHub environment for the publication jobs. This environment is configured on TestPyPI/PyPI and release jobs running in that environment can publish releases.

TestPyPI works, PyPI still needs to be configured and tested.

This patch changes the CD workflow to use trusted publishing to PyPI.
The main changes are:

- The CD workflow is always executed and always publishes to TestPyPI.
- For releases, the workflow also publishes to PyPI.
- Instead of using access tokens, we use a GitHub environment for the
  publication jobs.  This environment is configured on TestPyPI/PyPI
  and release jobs running in that environment can publish releases.
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