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

Deployment workflow could be update to use Trusted Publishers and Poetry #19

Open
pacharanero opened this issue Jun 12, 2023 · 0 comments
Assignees

Comments

@pacharanero
Copy link
Member

PyPi are recommending the new Trusted Publisher mechanism for authentication when publishing to PyPi.
I have also found that Poetry is a neat tool for building and deploying packages, both when working with them locally, and on publication.

There is an example of how to set up the workflow file here
https://github.com/uk-fci/nhs-number/blob/staging/.github/workflows/testpypi-publish.yml

PyPi or TestPyPi needs to be set up in the way described here
https://docs.pypi.org/trusted-publishers/adding-a-publisher/

GitHub needs to have a correspondingly-named Environment created. This environment can have additional review steps, signoffs, and controls added.

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

No branches or pull requests

1 participant