Skip to content

Commit

Permalink
add makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
samlhuillier committed Nov 28, 2023
1 parent 0fe929e commit 184c95b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
get-latest-tag:
git describe --tags --abbrev=0

version-bump-patch:
make version-bump type=patch

version-bump-minor:
make version-bump type=minor

version-bump-major:
make version-bump type=major

fetch-tags:
git fetch --all --tags

version-bump: fetch-tags
[ "${type}" ] || ( echo "'type' not provided [patch, minor, major]"; exit 1 )
bump2version --current-version $(shell git describe --tags --abbrev=0) ${type} --list --tag --serialize v{major}.{minor}.{patch} --tag-name {new_version} | grep new_version | sed -r s,"^.*=",, | xargs git push origin

0 comments on commit 184c95b

Please sign in to comment.