You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tychoUpversionMicroTagPush.sh
+34-19Lines changed: 34 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,17 @@ if [ $apiStatus -ne 0 ]; then
28
28
exit 1
29
29
fi
30
30
31
+
echo"Your JAVA_HOME is $JAVA_HOME"
32
+
if [[ -n"$JAVA_HOME" ]];then
33
+
# Determine if a (working) JDK is available in JAVA_HOME
34
+
if [ -x"$(command -v "$JAVA_HOME"/bin/javac)" ];then
35
+
JAVA_EXEC="$JAVA_HOME/bin/java"
36
+
else
37
+
echo"JAVA_HOME is set but does not seem to point to a valid Java JDK"1>&2
38
+
fi
39
+
fi
40
+
read -p "Press enter to continue"
41
+
31
42
32
43
echo"Here are the commits since last release"
33
44
@@ -102,34 +113,36 @@ else
102
113
echo git push origin v$newVerUnderscore
103
114
fi
104
115
105
-
echo"Go kick another build at https://github.com/redhat-developer/rsp-server/actions/workflows/gh-actions.yml"
116
+
echo"Time to make the release on github..."
117
+
echo"Let's start with the target platform"
106
118
read -p "Press enter to continue"
107
119
108
-
echo"Let's start with the target platform"
120
+
109
121
jbang repoflattener.java site
110
122
echo"Did jbang work? If not, cancel, debug, and start over."
111
123
read -p "Press enter to continue"
112
124
113
125
114
-
echo"Making a release on github for $newverFinal TargetPlatform"
126
+
echo-e "\nMaking a release on github for $newverFinal TargetPlatform"
115
127
createReleasePayload="{\"tag_name\":\"tp$newVerUnderscore\",\"target_commitish\":\"master\",\"name\":\"$newverFinal.targetplatform\",\"body\":\"Release of target platform for $newverFinal\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}"
createReleasePayload="{\"tag_name\":\"v$newVerUnderscore\",\"target_commitish\":\"master\",\"name\":\"v$newverFinal\",\"body\":\"Release of $newverFinal:\n\n"$commitMsgsClean"\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}"
179
+
echo"\n\nMaking a release on github for $newverFinal"
createReleasePayload="{\"tag_name\":\"v$newVerUnderscore\",\"target_commitish\":\"master\",\"name\":\"v$newverFinal\",\"body\":\"Release of $newverFinal:\n\n$commitMsgsClean\",\"draft\":false,\"prerelease\":false,\"generate_release_notes\":false}"
0 commit comments