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

Create publish.yml #56

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Create publish.yml #56

wants to merge 1 commit into from

Conversation

kousu
Copy link

@kousu kousu commented May 17, 2022

This GitHub Action builds wheels and sdists and pushes them to GitHub's releases page and PyPI.
All you have to do is go to New Release, fill in a version tag like "v0.1.1", click Publish, and a couple minutes later the .whl and .tar.gz will be up on Releases and on PyPI.

To get PyPI working, get a PyPI token, give it to GitHub here named PYPI_TOKEN.

To get a feel for it, you can see examples of how this looks in practice at

And the kinds of outputs it makes at

This GitHub Action builds wheels and sdists and pushes them to GitHub's releases page and PyPI.
All you have to do is go to [New Release](https://github.com/adalca/neurite/releases/new),
fill in a version tag like "v0.1.1", click Publish, and a couple minutes later the .whl and .tar.gz
will be up on [Releases](https://github.com/adalca/neurite/releases) and on [PyPI](https://pypi.org/project/neurite).

To get PyPI working, [get a PyPI token](https://pypi.org/manage/account/token/), give it to GitHub [here](https://github.com/adalca/neurite/settings/secrets/actions) named `PYPI_TOKEN`.

To get a feel for it, you can see examples of how this looks in practice at

* https://github.com/ivadomed/ivadomed/actions/workflows/publish_package.yml

And the kinds of outputs it makes at

* https://github.com/ivadomed/ivadomed/releases/
* https://pypi.org/project/ivadomed/#history
@kousu
Copy link
Author

kousu commented May 17, 2022

Hopefully this makes voxelmorph/voxelmorph#321 (comment) easier! It would help us out too, because then we could build on your work in voxelmorph.

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.

None yet

1 participant