Add GitHub action that releases to PyPI on Create Release
#133
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.
As explained in #126, you cannot release a package to PyPI with a direct dependency like
whisper-jax
(i.e. only installed usingpip install git+https://github.com/sanchit-gandhi/whisper-jax.git
).To fix this, the package must be released to PyPI.
I added a GitHub Action to easily allow this to happen.
You only need to make sure you update the version here with every release:
whisper-jax/whisper_jax/__init__.py
Line 16 in 45bff9d
Then create a tag for every important change then create a release from the tag.
I suggest using Semantic Versioning 2.0.0 for choosing the next release version increment.
To test the release, I tried it on TestPyPI and it worked releasing v0.0.1 (I'll delete it or handover ownership to you if you want).
Now for the real PyPI, you must create a new project from Publishing, at the bottom you will find this 👇
Fill it with:
And then we're good to go. It'll be ready to do the release from GitHub :)