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

Create python-publish.yml #11233

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

invisiblepancake
Copy link

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 the release-build job to check out the repository, set up Python, build the release distributions, and upload the artifacts.
  • .github/workflows/python-publish.yml: Defined the pypi-publish job to download the built distributions and publish them to PyPI using the pypa/gh-action-pypi-publish action.# Description
    New 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

  • Related issue / work item is attached
  • Tests are written (if applicable)
  • Documentation is updated (if applicable)
  • Changes are tested and related VM images are successfully generated

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.

1 participant