Skip to content
G

GH Action Pypi Publish

The blessed GitHub Action, for publishing your distribution files to PyPI

by pypaFree

#1120in Productivity
0In stores

Description

The PyPI publish GitHub Action uploads your Python distribution packages from the dist/ directory to PyPI. It is the GitHub Action maintaine…

Highlights

  • Uploads dist/ packages to PyPI
  • Trusted publishing with OIDC
  • No stored API token needed
  • Pin to release/v1 or a tag
  • Maintained by PyPA

Ratings & Reviews

No ratings yet

Be the first to rate GH Action Pypi Publish.

People also visit

N

nuget-trusted-publishing

Set up NuGet trusted publishing (OIDC) on a GitHub Actions repo

AI Skills
Get
C

Create Pull Request

A GitHub action to create a pull request for changes

Productivity
Launch
G

github-release

Prepare and publish GitHub releases

AI Skills
Get
G

Github Pages Deploy Action

Automatically deploy your project to GitHub Pages using GitHub Actions

Developer Tools
Launch
G

github-release-management

Comprehensive GitHub release orchestration

AI Skills
Get
G

github-actions-hardening

Security hardening reviewer for GitHub Actions workflow files

AI Skills
Get

GH Action Pypi Publish FAQ

What does the action do?

It uploads the distribution packages in your dist/ directory to PyPI.

Do I need an API token?

Not with trusted publishing. The workflow needs the id-token: write permission and no username or password, and the publisher must be configured on PyPI first.

Can I use it in a reusable workflow?

Trusted publishing cannot be used from inside a reusable workflow. The README suggests calling it from a separate job in a non-reusable workflow.

Which version should I pin?

The master branch has been sunset. The README recommends release/v1, an exact tag, or a full commit SHA with Dependabot.

Who maintains it?

The Python Packaging Authority (PyPA).

What are the best GH Action Pypi Publish alternatives?

Popular alternatives to GH Action Pypi Publish include Create Pull Request, Create Github App Token and Add And Commit. See all GH Action Pypi Publish alternatives

Developer Stuff

Badges