-
Notifications
You must be signed in to change notification settings - Fork 584
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 #433
base: dev
Are you sure you want to change the base?
Create publish.yml #433
Conversation
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/voxelmorph/voxelmorph/releases/new), fill in a version tag like "v0.9.1", click Publish, and a couple minutes later the .whl and .tar.gz will be up on [Releases](https://github.com/voxelmorph/voxelmorph/releases) and on [PyPI](https://pypi.org/project/voxelmorph). To get PyPI working as well, [get a PyPI token](https://pypi.org/manage/account/token/), give it to GitHub [here](https://github.com/voxelmorph/voxelmorph/settings/secrets/actions) named `PYPI_TOKEN`. Fixes voxelmorph#432
By the way, I recommend using a 'rc' tag like "v0.1.1rc1" to get the hang of the process the first few tries (because you never can reuse tags on pypi). Thanks for taking the time to consider this! |
thanks @kousu this is super useful! you might have noticed we just uploaded a new version (0.2) to pypi, but we're happy to include this for an upcoming 0.3 release. I'm not very familiar with the github action builds, but we'll take a look into it and try to get things integrated |
Great! I think it should be pretty straight forward, but let me know if I can give you a hand figuring it out. By the way I just noticed you're using Lines 14 to 23 in a746f77
instead of voxelmorph/.github/workflows/publish.yml Line 34 in babc17f
with |
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
.Will help to fix #432
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