Updating basetag.sh
This commit is contained in:
parent
2bd93d6298
commit
12122870c3
12
basetag.sh
12
basetag.sh
@ -1,17 +1,17 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
## Creating new releases
|
# #For a fresh repo / Creating new releases
|
||||||
|
|
||||||
# git add -A;
|
# git add -A;
|
||||||
# git commit -m "<commit msg>"
|
# git commit -m "<commit msg>"
|
||||||
# #Minor version
|
# #Setting a tag
|
||||||
# git tag -a -m "<tag msg>" v1.0.1
|
# git tag -a -m "<tag msg>" v1.0.0
|
||||||
# git push --follow-tags
|
# git push --follow-tags
|
||||||
# #Moving major version
|
# #Moving a tag (eg: for major version retagging)
|
||||||
# git tag -fa v1
|
# git tag -fa v1
|
||||||
# git push --tags -f
|
# git push --tags -f
|
||||||
|
|
||||||
# https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351
|
# Based on https://gist.github.com/CSTDev/08c127680e3b5fae38c051da3e489351
|
||||||
|
# Commit with a log containing #minor or #major to increment the respective version number
|
||||||
|
|
||||||
#get highest tag number containing at least 2 dots
|
#get highest tag number containing at least 2 dots
|
||||||
VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"`
|
VERSION=`git describe --abbrev=0 --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user