ci: add PyPI publish workflow#33
Open
BioGeek wants to merge 1 commit into
Open
Conversation
Adds a GitHub Actions workflow that builds and publishes the instanexus package to PyPI when a new release is created. Uses the standard python-m-build + pypa/gh-action-pypi-publish pattern. Requires a PYPI_API_TOKEN repository secret. Also supports manual dispatch for testing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a GitHub Actions workflow (
.github/workflows/python-publish.yml) that automatically builds and publishes theinstanexuspackage to PyPI when a new GitHub Release is created. Modeled on the InstaNovo publish workflow.How it works
ghCLI)release: publishedeventpython -m buildand uploads to PyPIHow to trigger
Option A — GitHub web UI:
pyproject.toml(e.g.v0.2.1)Option B — GitHub CLI:
Option C — Manual dispatch (for testing):
Prerequisites
A PyPI API token must be stored as a repository secret named
PYPI_API_TOKEN:The version in
pyproject.tomlmust match the release tag (without thevprefix). PyPI rejects duplicate version uploads.Test plan
PYPI_API_TOKENsecret to the repogh workflow run python-publish.yml) or create a test release