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

Add PyPI publishing workflow #224

Merged
merged 3 commits into from
Apr 26, 2024
Merged

Add PyPI publishing workflow #224

merged 3 commits into from
Apr 26, 2024

Conversation

Peter9192
Copy link
Collaborator

@Peter9192 Peter9192 commented Apr 26, 2024

Add automated publishing to PyPI upon release.
PyPI is made a "trusted publisher", so we don't need to store any secret tokens.

Instructions: https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/

Copied from WAM2layers/WAM2layers#342

@Peter9192 Peter9192 marked this pull request as ready for review April 26, 2024 09:25
@Peter9192 Peter9192 requested a review from fnattino April 26, 2024 09:25
Copy link
Contributor

@fnattino fnattino left a comment

Choose a reason for hiding this comment

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

Hi @Peter9192 , thanks a lot for taking care of this. Just one probably not-so-relevant comment below, feel free to merge on my side!


on:
release:
types: [created]
Copy link
Contributor

Choose a reason for hiding this comment

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

In the workflow I have used, I have "published" here instead of "created".

I am not sure which one is safer to use, here someone suggests that releases that are automatically generated might go directly to the "published" state without passing through the "created" one (thus "published" should be better suited here). However this is probably some sort of edge case, so feel free to leave or modify as you see fit!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the suggestion, I adopted it :-)

@Peter9192 Peter9192 merged commit 8e10584 into main Apr 26, 2024
4 checks passed
@Peter9192 Peter9192 deleted the publish-to-pypi branch April 26, 2024 13:35
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.

None yet

2 participants