| ... |
... |
@@ -46,25 +46,27 @@ echo "MB tag: $MB_TAG" |
|
46
|
46
|
echo "BB tag: $BB_TAG"
|
|
47
|
47
|
echo "FX tag: $FX_TAG"
|
|
48
|
48
|
echo "Mullvad release tag: $RELEASE_VERSION"
|
|
49
|
|
-read -p "Do you want to tag mullvad $RELEASE_VERSION & push tags/branches/QA build to ${GH_REMOTE}? (y/N) " -n 1 -r
|
|
50
|
49
|
echo
|
|
51
|
|
-if ! [[ $REPLY =~ ^[Yy]$ ]]; then
|
|
|
50
|
+echo "Do you want to tag mullvad $RELEASE_VERSION, push to ${GH_REMOTE} and submit the build for QA?"
|
|
|
51
|
+read -p '(y[es]/N[o]/S[ubmit only]) ' -n 1 -r
|
|
|
52
|
+echo
|
|
|
53
|
+if ! [[ $REPLY =~ ^[YySs] ]]; then
|
|
52
|
54
|
echo >&2 "Operation cancelled"
|
|
53
|
55
|
exit 1
|
|
54
|
56
|
fi
|
|
55
|
|
-
|
|
56
|
|
-git checkout $MB_TAG
|
|
57
|
|
-[[ $(git tag -l $RELEASE_VERSION) ]] || git tag -s $RELEASE_VERSION -m"$FX_VERSION-based $RELEASE_VERSION"
|
|
58
|
|
-git tag -n1 $RELEASE_VERSION
|
|
59
|
|
-git push "$GH_REMOTE" "HEAD:refs/heads/$MB_BRANCH"
|
|
60
|
|
-git push "$GH_REMOTE" "$FX_TAG"
|
|
61
|
|
-git push "$GH_REMOTE" "$BB_TAG"
|
|
62
|
|
-git push "$GH_REMOTE" "$RELEASE_VERSION"
|
|
63
|
|
-
|
|
|
57
|
+if ! [[ $REPLY =~ ^[Ss] ]] ; then
|
|
|
58
|
+ git checkout $MB_TAG
|
|
|
59
|
+ [[ $(git tag -l $RELEASE_VERSION) ]] || \
|
|
|
60
|
+ git tag -s $RELEASE_VERSION -m"$FX_VERSION-based $RELEASE_VERSION"
|
|
|
61
|
+ git tag -n1 $RELEASE_VERSION
|
|
|
62
|
+ git push "$GH_REMOTE" "HEAD:refs/heads/$MB_BRANCH"
|
|
|
63
|
+ git push "$GH_REMOTE" "$FX_TAG"
|
|
|
64
|
+ git push "$GH_REMOTE" "$BB_TAG"
|
|
|
65
|
+ git push "$GH_REMOTE" "$RELEASE_VERSION"
|
|
|
66
|
+fi
|
|
64
|
67
|
popd >/dev/null
|
|
65
|
68
|
|
|
66
|
69
|
# Call Mullvad's github workflow for new releases (mullvad-browser#466)
|
|
67
|
|
-
|
|
68
|
70
|
version=$BASE_VERSION
|
|
69
|
71
|
response=$(curl -L \
|
|
70
|
72
|
-X POST \
|
| ... |
... |
@@ -74,10 +76,11 @@ response=$(curl -L \ |
|
74
|
76
|
"https://api.github.com/repos/mullvad/mullvad-browser/actions/workflows/new_browser_release.yml/dispatches" \
|
|
75
|
77
|
-d "{\"ref\":\"main\",\"inputs\":{\"version\":\"$version\"}}")
|
|
76
|
78
|
|
|
77
|
|
-if ! [ $response ]; then
|
|
78
|
|
- echo "Build $BASE_VERSION submitted."
|
|
|
79
|
+if ! [[ $response ]]; then
|
|
|
80
|
+ echo "Build $BASE_VERSION submitted and ready for QA \\o/."
|
|
79
|
81
|
else
|
|
|
82
|
+ echo >&2 "!!! ERROR !!!"
|
|
80
|
83
|
echo >&2 "Something went wrong with build submission:"
|
|
81
|
|
- echo >&2 $response
|
|
|
84
|
+ echo >&2 "$response"
|
|
82
|
85
|
exit 3
|
|
83
|
86
|
fi |