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
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
Helper.log.info"Current R.swift podspec version is #{currentVersion}"
43
-
44
-
bumpType=prompt(text: "What kind of release is this? (major/minor/patch/custom)".green,boolean: false,ci_input: "")
45
-
isPrerelease=false
46
-
casebumpType
47
-
when"major","minor","patch"
48
-
version_bump_podspec(bump_type: bumpType)
49
-
when"custom"
50
-
newVersion=prompt(text: "What is the new custom version number?".green,boolean: false,ci_input: "")
51
-
version_bump_podspec(version_number: newVersion)
52
-
53
-
isPrerelease=prompt(text: "Is this a prerelease version?".green,boolean: true,ci_input: "")
54
-
else
55
-
raise"Invalid release type: #{bumpType}".red
56
-
end
57
-
58
-
newVersion=version_get_podspec()
59
-
changelog=prompt(text: "Please provide release notes:".green,boolean: false,ci_input: "",multi_line_end_keyword: "FIN")
60
-
61
-
af_insert_text_into_file(
62
-
file_path: "Changelog.md",
63
-
text: "## #{newVersion}\n\n#{changelog}\n\n",
64
-
insert_at_bottom: false
65
-
)
66
-
67
70
zipPath="/tmp/rswift-#{newVersion}.zip"
68
71
sh"rm -f #{zipPath}"
69
72
@@ -72,6 +75,13 @@ lane :release do |options|
72
75
output_path: zipPath
73
76
)
74
77
78
+
unlessis_ci
79
+
notification(
80
+
title: "R.swift release",
81
+
message: "💡 Needs your attention."
82
+
)
83
+
end
84
+
75
85
unlessprompt(text: "#{newVersion} has been build and prepped for release. If you have any additional changes you would like to make, please do those before continuing. Would you like to commit, tag, push and release #{newVersion} including all uncommitted changes?".green,boolean: true,ci_input:"y")
0 commit comments