mateusoliveira43 / python-project-template

Template for a Python project | Modelo de projeto Python
https://github.com/mateusoliveira43/python-project-template/wiki
MIT License
7 stars 0 forks source link

Add versioning automation #15

Closed mateusoliveira43 closed 1 year ago

mateusoliveira43 commented 2 years ago

Add versioning automation. This can help https://github.com/tiangolo/latest-changes

mateusoliveira43 commented 2 years ago

Idea: still just have a main branch; use latest changes github action on each commit to main; when there is a release commit (i.e. version changes), create release and tag with github action (with the body being changelog file for that version).

mateusoliveira43 commented 2 years ago

to get current tag

git describe --tag --abbrev=0
mateusoliveira43 commented 2 years ago

create job that generates JSON with 3 parameters:

and if version is new, call release action with tag and body.

mateusoliveira43 commented 2 years ago

add this link to documentation https://semver.org/