workflow to do pre-releases to pypi on commits to master #319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this is based on what moto and django-promethues are doing.
basically a pre-release is created on pypi on every push to master.
which means people don't have to wait for a release if they want to consume a patch that landed on master.
the pre-release GHA workflow file uses pypi's new trusted publisher feature and requires a simple config to be added on the pypi side.
@mpdavis lmk what you think.
I am also planning to have a different workflow file for regular releases, similar to what I did here
However, I don't have permissions to configure trusted publishers in pypi for this project (I don't have permissions to do it).
So I will need you to do it if you think it is a good idea to do and have some time to do it.
It is very simple to do. instructions are here: https://docs.pypi.org/trusted-publishers/adding-a-publisher/