Open mmarquezs opened 3 years ago
@mmarquezs I should be able to help with that
Take a look at https://github.com/rix1337/MyJD-API/blob/master/.github/workflows/CreateRelease.yml
That's how I automatically build python packages on pushes to master.
Thanks for the info, although I had a different thing on mind. I already use a similar thing to what you shared, although when I manually create a release. My idea was different here, in a work project I have a setup that basically takes the version from git, the branch and tags.
So if you create the branch: release/1.17 The first merged there is 1.17.0 and any subsequent merges are 1.17.1 etc.... it's automatic. Until you create a new branch for 1.18 for example.
That goes together with the releasing system that tracks those branches pulls that version tag and creates a release setting that version on it.
So to create a new version I do not need to modify the code to change the version in a file. Just pushing it to the specific release branch and it will automatically increase the version number and do a release.
Ah, that sounds like a super helpful feature. Maybe there is an existing GitHub action for this.
I'll update this issue if I find anything.
Automate versioning somehow.