add commit has into release notes
This commit is contained in:
parent
b11e6fe6ed
commit
ebc0bc5c7c
2 changed files with 12 additions and 1 deletions
|
|
@ -31,6 +31,10 @@ platform :android do
|
||||||
desc "```"
|
desc "```"
|
||||||
lane :deployInternalFirebase do |options|
|
lane :deployInternalFirebase do |options|
|
||||||
release_notes = options[:release_notes]
|
release_notes = options[:release_notes]
|
||||||
|
if release_notes.nil?
|
||||||
|
commit = last_git_commit
|
||||||
|
release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}"
|
||||||
|
end
|
||||||
|
|
||||||
buildReleaseApk()
|
buildReleaseApk()
|
||||||
internal_apk = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].find{ |i| i[/app-*release*.apk/] }
|
internal_apk = lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS].find{ |i| i[/app-*release*.apk/] }
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,13 @@ platform :ios do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Description of what the lane does"
|
desc "Description of what the lane does"
|
||||||
lane :deployInternalFirebase do
|
lane :deployInternalFirebase do |options|
|
||||||
|
release_notes = options[:release_notes]
|
||||||
|
if release_notes.nil?
|
||||||
|
commit = last_git_commit
|
||||||
|
release_notes = "Last commit with hash: #{commit[:commit_hash]} and message: #{commit[:message]}"
|
||||||
|
end
|
||||||
|
|
||||||
ipa_name = "Internal.ipa"
|
ipa_name = "Internal.ipa"
|
||||||
buildReleaseIPA(ipa_name: ipa_name, method: "ad-hoc")
|
buildReleaseIPA(ipa_name: ipa_name, method: "ad-hoc")
|
||||||
|
|
||||||
|
|
@ -42,6 +48,7 @@ platform :ios do
|
||||||
app: FIREBASE_APP_DISTRIBUTION_APP_STAGING,
|
app: FIREBASE_APP_DISTRIBUTION_APP_STAGING,
|
||||||
groups: FIREBASE_APP_DISTRIBUTION_GROUPS_QA,
|
groups: FIREBASE_APP_DISTRIBUTION_GROUPS_QA,
|
||||||
ipa_path: "builds/#{ipa_name}",
|
ipa_path: "builds/#{ipa_name}",
|
||||||
|
release_notes: "#{release_notes}",
|
||||||
)
|
)
|
||||||
cleanupKeyChain()
|
cleanupKeyChain()
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue