mggg / ecological-inference

Ecological inference, in Python
MIT License
28 stars 11 forks source link

Add autopublish workflow #115

Closed ColCarroll closed 4 months ago

ColCarroll commented 4 months ago

This should allow a PyPI release when pyei.__version__ is greater than the latest version at https://pypi.org/project/pyei/. I also updated some of the github actions to more recent ones.

Note that this requires

  1. creating a security token at https://pypi.org/manage/project/pyei/settings/, and then
  2. going to https://github.com/mggg/ecological-inference/settings/secrets/actions and adding this key as a secret named "PYPI_API_TOKEN"

I think that's it! But it might require some futzing. In particular, the action only runs when you merge to main and update the version number, so we can't really tell if it worked until you merge this, do those two steps, and then bump the version number.

For what it is worth, both of bayeux and ridge_map use this action.

karink520 commented 4 months ago

So helpful, thanks!