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
unlessprompt(text: "R.swift.Library #{libraryVersionUsed} is defined as dependency.\nAdjust podspec now if needed. Ready to continue?".green,boolean: true,ci_input: "")
15
-
raise"Aborted by user".red
16
-
end
17
-
18
-
currentVersion=version_get_podspec()
19
-
UI.message"Current R.swift podspec version is #{currentVersion}"
20
-
21
-
isPrerelease=false
22
-
bumpType=prompt(text: "What kind of release is this? (major/minor/patch/custom)".green,boolean: false,ci_input: "")
23
-
casebumpType
24
-
when"major","minor","patch"
25
-
version_bump_podspec(bump_type: bumpType)
26
-
when"custom"
27
-
newVersion=prompt(text: "What is the new custom version number?".green,boolean: false,ci_input: "")
28
-
version_bump_podspec(version_number: newVersion)
29
-
30
-
isPrerelease=prompt(text: "Is this a prerelease version?".green,boolean: true,ci_input: "")
31
-
else
32
-
raise"Invalid release type: #{bumpType}".red
33
-
end
34
-
35
-
newVersion=version_get_podspec()
36
-
changelog=prompt(text: "Please provide release notes:".green,boolean: false,ci_input: "",multi_line_end_keyword: "FIN")
37
-
af_insert_text_into_file(
38
-
file_path: "Changelog.md",
39
-
text: "## #{newVersion}\n\n#{changelog}\n\n",
40
-
insert_at_bottom: false
41
-
)
42
-
43
-
# Sync version.swift with version in podspec
44
-
filepath='../Sources/rswift/Rswift.swift'
45
-
newVersion=version_get_podspec()
46
-
47
-
content=File.read(filepath).sub(/static let version = "(.*)"/,"static let version = \"#{newVersion}\"")
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")
67
-
raise"Aborted by user".red
68
-
end
69
-
70
-
unless`git status --porcelain`.empty?
71
-
git_commit(
72
-
path: ".",
73
-
message: "Preparing for the #{newVersion} release"
0 commit comments