We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c76450 commit a071205Copy full SHA for a071205
src/release.sh
@@ -0,0 +1,23 @@
1
+#!/bin/bash
2
+
3
+# Called with a single parameter in the form "alpha.XX" or "beta.A"
4
+MINPARAMS=1
5
6
+if [ $# -lt "$MINPARAMS" ]
7
+then
8
+ echo
9
+ echo "This script needs at least $MINPARAMS command-line arguments!"
10
+ exit 0
11
+fi
12
13
+VERSION="v5.0-$1"
14
+echo $VERSION
15
16
+git checkout master
17
+rm LATEST_TAG.txt
18
+echo $VERSION >> LATEST_TAG.txt
19
+git add LATEST_TAG.txt
20
+echo "git commit -m \"Tagged release $VERSION\""
21
+echo "git push origin master"
22
+echo "git tag -a $VERSION -m \"Release $VERSION\""
23
+echo "git push --tags"
0 commit comments