Skip to content

Publish to PyPI from GitHub releases - #16

Merged
djmarques merged 2 commits into
DiseaseTranscriptomicsLab:mainfrom
djmarques:main
Nov 20, 2026
Merged

djmarques merged 2 commits into
DiseaseTranscriptomicsLab:mainfrom
djmarques:main

Conversation

@djmarques

Copy link
Copy Markdown
Collaborator

Publish to PyPI from GitHub releases

Adds .github/workflows/publish.yml. When a GitHub release is published, the workflow:

  1. checks that the release tag (for example v1.1.3) matches the version in pyproject.toml, and stops if it doesn't;
  2. builds the source distribution and wheel with uv build;
  3. uploads them to PyPI using PyPI's trusted publishing, so no PyPI password or token is stored in the repository.

The workflow runs only when a release is published, so merging this pull request publishes nothing by itself.

Setup needed before the first release (repository administrators):

  • On PyPI, add a trusted publisher for the circStudio project: owner DiseaseTranscriptomicsLab, repository circStudio, workflow publish.yml, environment pypi.
  • On GitHub, create an environment named pypi under Settings → Environments (optionally with a required reviewer).

@djmarques
djmarques merged commit 9731477 into DiseaseTranscriptomicsLab:main Nov 20, 2026
9 checks passed
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