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 pull request introduces a new GitHub Actions workflow to automate the process of uploading a Python package to PyPI when a release is created. The most important changes include defining the workflow configuration, setting up the necessary permissions, and specifying the steps for building and publishing the package.
Workflow configuration and permissions:
.github/workflows/python-publish.yml
: Added a new workflow named "Upload Python Package" that triggers on release publication and includes permissions for reading contents and writing id-tokens.Steps for building and publishing the package:
.github/workflows/python-publish.yml
: Defined therelease-build
job to check out the repository, set up Python, build the release distributions, and upload the artifacts..github/workflows/python-publish.yml
: Defined thepypi-publish
job to download the built distributions and publish them to PyPI using thepypa/gh-action-pypi-publish
action.# DescriptionNew tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
For new tools, please provide total size and installation time.
Related issue:
Check list