Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to push releases to pypi #665

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

eachanjohnson
Copy link
Contributor

@eachanjohnson eachanjohnson commented Oct 10, 2024

This GitHub workflow will push new GH releases automatically to pypi. One caveat is that the pypi API key needs to be stored in the repository or organisation secrets (under Settings) as PYPI_API_TOKEN.

Relates to issue #663

@TomSmithCGAT
Copy link
Member

Thanks @eachanjohnson. I've add the pypi API key as PYPI_API_TOKEN under the repository secrets.

I assume the only way to check it's all working is to merge this PR and then issue a test release?

@eachanjohnson
Copy link
Contributor Author

I did some digging. There's a test PyPI index at https://test.pypi.org/. I've added an untested workflow to upload to TestPyPI which is triggered when a tag is pushed, so you can check success before publishing the tag as a release. It requires an account on https://test.pypi.org/ and TEST_PYPI_API_TOKEN stored as a secret.

(Although tests are failing so it might need some tweaking).

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.

2 participants