CleanCut / green

Green is a clean, colorful, fast python test runner.
MIT License
785 stars 75 forks source link

Move Release Process to GitHub Actions #278

Closed CleanCut closed 4 months ago

CleanCut commented 6 months ago

It is time to move the release process from my local machine to GitHub actions.

This is a prerequisite for @sodul to gain publishing privileges.

sodul commented 5 months ago

Thanks for granting me maintainer status for green on pipy.org.

I'm looking at https://github.com/marketplace/actions/pypi-publish to handle the releases. The nice thing is that no secret should need to be added which should keep things safe.

I will probably update the 3.5.0 release to use this action.

CleanCut commented 5 months ago

Do you need anything from me to enable this?

sodul commented 5 months ago

Yes, easiest for you is to grant me ownership on GH and Pypi.org so I can setup Trusted publishing as only owner, not maintainers, can do it. You can switch me back to maintainer afterwards.

Alternatively you can follow the instructions to add the GH project as a trusted source, it seems relatively simple but I have never done it: https://docs.pypi.org/trusted-publishers/adding-a-publisher/

CleanCut commented 5 months ago

✅ Done!

Image

Image

CleanCut commented 5 months ago

I created the corresponding environments.

Image

sodul commented 5 months ago

Thanks, I was planning on working on the python 3.12.1 compatibility issue this weekend so I can try this at the same time.

sodul commented 4 months ago

It worked like charm: https://github.com/CleanCut/green/releases/tag/4.0.1 https://github.com/CleanCut/green/actions/runs/7919259574 https://pypi.org/project/green/4.0.1/