PyBites-Open-Source / pybites-tools

A repo to commit common Python utility scripts and snippets
MIT License
18 stars 8 forks source link

add a publish to pypi workflow #42

Closed bbelderbos closed 1 year ago

bbelderbos commented 1 year ago

Copied from here: https://github.com/bbelderbos/emojisearcher/blob/master/.github/workflows/publish-to-test-pypi.yml

bbelderbos commented 1 year ago

I guess no real review was needed, right_

Yep, it works on the other repo. I added this because PyPI is outdated so I want to semi-automate this. Could have done it on main but a branch + PR is always better for history / tracking.

bbelderbos commented 1 year ago

Had an issue with credentials but it worked now: https://github.com/PyBites-Open-Source/pybites-tools/actions/runs/3948289782

=> https://pypi.org/project/pybites-tools/ - v2 is up

To make a release edit the version in init.py, then:

git tag vX.Y
git push --tags