Skip to content

Create publish.yml#56

Open
kousu wants to merge 1 commit into
adalca:devfrom
kousu:publish
Open

Create publish.yml#56
kousu wants to merge 1 commit into
adalca:devfrom
kousu:publish

Conversation

@kousu
Copy link
Copy Markdown

@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
Copy Markdown
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.

1 participant