My.Jdownloader-API-Python-Library icon indicating copy to clipboard operation
My.Jdownloader-API-Python-Library copied to clipboard

Automate versioning and releases on merge to master using GitHub Actions.

Open mmarquezs opened this issue 4 years ago • 3 comments

Automate versioning somehow.

mmarquezs avatar Aug 26 '21 18:08 mmarquezs

@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.

rix1337 avatar Jun 14 '22 17:06 rix1337

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.

mmarquezs avatar Jul 01 '22 08:07 mmarquezs

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.

rix1337 avatar Jul 02 '22 08:07 rix1337