Create publish-to-pypi.yml #13
Open
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.
Summary
I have added a GitHub Actions workflow to automate the publishing of this module to PyPI on releases for ease and convenience. Please note that I have not tested this workflow, so it is important for you to test it yourself. Additionally, you can modify the "publish-to-pypi.yml" file to suit your specific requirements. For example, you can customize it to publish on pushed commits that include a tag. You can find more information on how to do this in the official PyPI documentation.
How to Use
To use this workflow, you need to create an API token for PyPI. You can do this by visiting the PyPI account page. Once you have the API token, go to the Settings tab of your repository on GitHub, click on Secrets in the left sidebar, and add a secret named
PYPI_API_TOKENwith the value set to your API token.Finally, you can test the workflow by using the
workflow_dispatcherthat I have created.If you require any further information, please feel free to reach out to me.