-
Notifications
You must be signed in to change notification settings - Fork 111
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
Suggestion: Set up release automation and changelog #334
Comments
Currently it looks like hera publish workflow fails on every commit unless it is a new version since pypi doesn't allow version overrides. See https://github.com/argoproj-labs/hera-workflows/actions/runs/3347332597/jobs/5545275302 The above may be a better solution. |
Hera currently uses The auto-generated release is nice! We can certainly take a look at that! |
The CICD failures happens because we're attempting to upload |
I am confused whether Hera is supposed to be auto-publishing to PyPi? Is CICD broken as 4.2.0 was from 31st Oct? Would love to play with the new features (hooks in particular)! |
@elliotgunton Hera publishes to PyPi. You can see the block here. It is not broken as of 4.2.0, AFAICT, since the build succeeds by successfully skipping existing versions (via |
Thank you Flav! I see, then Hera only releases to PyPi when Possibly introducing a dev branch for a release cut would also be good! |
Could definitely do that! Are you thinking about one release per PR, almost? 🤔 We could set something up such as:
I think no matter what avenue we pursue there is a "manual" step of specifying "I want to release a new version":
So, I think this really becomes a problem of clarity - which way to release is the clearest? At the moment the release cycle is, really, only clear to me.. I make a |
Potentially! I really like your suggestion of "add [PATCH | MINOR | MAJOR | DOCS] spec in a PR title" as it lets contributors "request" a new version with their contribution to be released, and I think as project maintainer you can change PR titles? So you can decide before merging how to bump - especially also because with a major version bump we expect breaking changes so you'd want to use it carefully, possibly restricting who can use it, or with your approval? Another alternative is using Git PR labels?
Agreed! I think it's too restrictive to do full automation of minor/patch bumps on a merge to main - we should at least be able to say whether it's a new feature (minor) or a bugfix (patch).
I think there are differences between those ways in terms of who can release - for Github tags and releases I think only you can do those? I think updating There are some other approaches and ideas in https://py-pkgs.org/07-releasing-versioning.html#automatic-version-bumping but enforcing those |
It would be great if the hera release process could be automated.
Some examples of how it can be done are -
The above releases the package on PyPI automatically through the Github UI by creating a release.
You can also couple it with release drafter which will give you nice changelogs like https://github.com/buildpacks/libcnb/releases
The text was updated successfully, but these errors were encountered: