pypa/gh-action-pypi-publish
The blessed :octocat: GitHub Action, for publishing your :package: distribution files to PyPI, the tokenless way: https://github.com/marketplace/actions/pypi-publish observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 95
- Release rhythm 95
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 21.5
- age_days: 2716
- days_rel: 35
- days_push: 35
- n_releases_24m: 13
Adoption not part of the score
1184 stars · 120 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
The official PyPA GitHub Action for publishing Python distribution packages to PyPI and TestPyPI directly from CI/CD workflows. It supports tokenless authentication via PyPI's Trusted Publishing (OIDC) as well as traditional API token and username/password methods.
Use cases
- publish python package to pypi from github actions
- upload dist files to pypi in ci
- tokenless pypi publishing with oidc
- automate python package releases
- publish to testpypi for testing
- release python package without storing api tokens
When to choose
- You want to publish Python packages to PyPI or TestPyPI from GitHub Actions workflows
- You want to avoid managing long-lived API tokens by using OIDC-based Trusted Publishing
- You want the officially supported PyPA-recommended publishing action
When to avoid
- You need to publish from a reusable workflow with trusted publishing (not currently supported; use tokens instead)
- You publish to non-PyPI package indexes with custom authentication flows
- You need highly customized publishing scenarios outside the supported usage patterns
Facets
plugin · maturity active
deployment ci-cd package-manager secrets-management workflow-automation developer-tools python cloud pypi trusted-publishing oidc github-action release-automation twine python-packaging tokenless-authentication testpypi automation github-actions
1 source
- readme: https://github.com/pypa/gh-action-pypi-publish · fetched 2026-08-28 · 5a4196f4da62
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pypa/gh-action-pypi-publish | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="pypa/gh-action-pypi-publish")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem