File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
VERSION=$( cat version.txt)
18
18
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
20
20
echo " Version ${VERSION} must be 'X.Y.Z', 'X.Y.Z-alpha.N', or 'X.Y.Z-beta.N'"
21
21
exit 1
22
22
fi
23
23
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"
26
26
exit 1
27
27
fi
28
28
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} "
31
31
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