Skip to content

Instantly share code, notes, and snippets.

View TheMariday's full-sized avatar
🎩
.

The Mariday TheMariday

🎩
.
View GitHub Profile
@emrekgn
emrekgn / publishing-from-github.md
Created November 27, 2025 13:13
How to publish a Python package from Github to pypi ("Trusted Publishers" method)

Publishing to PyPI from GitHub with Trusted Publishers

This guide walks through the full workflow for publishing a Python package to PyPI using GitHub Actions and PyPI's Trusted Publishers (OIDC) feature. No long‑lived API tokens are required—PyPI issues temporary credentials to GitHub at publish time.


1. Prerequisites

  1. A PyPI account with two-factor authentication enabled.