File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1616
1717VERSION=$( cat version.txt)
1818
19- if [[ ! " ${VERSION} " =~ ^([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha| beta)[.]([0-9]+))? $ ]]; then
19+ if [[ ! " ${VERSION} " =~ ^v ([0-9]+[.][0-9]+)[.]([0-9]+)(-(alpha| beta)[.]([0-9]+))? $ ]]; then
2020 echo " Version ${VERSION} must be 'X.Y.Z', 'X.Y.Z-alpha.N', or 'X.Y.Z-beta.N'"
2121 exit 1
2222fi
2323
24- if [ " $( git tag -l " v ${VERSION} " ) " ]; then
25- echo " Tag v ${VERSION} already exists"
24+ if [ " $( git tag -l " ${VERSION} " ) " ]; then
25+ echo " Tag ${VERSION} already exists"
2626 exit 1
2727fi
2828
29- git tag -a -m " Release ${VERSION} " " v ${VERSION} "
30- git push origin " v ${VERSION} "
29+ git tag -a -m " Release ${VERSION} " " ${VERSION} "
30+ git push origin " ${VERSION} "
3131
32- echo " release_tag=refs/tags/v ${VERSION} " >> $GITHUB_OUTPUT
32+ echo " release_tag=refs/tags/${VERSION} " >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change 1- 0 .8.15
1+ v0 .8.15
You can’t perform that action at this time.
0 commit comments