INNER CODE UNIT · Ruby
distribute_to_production
wordpress-mobile/WordPress-Android · fastlane/lanes/promote.rb:532
def distribute_to_production(version_code:)
%i[wordpress jetpack].to_h do |app|
result =
begin
promote_version_code_to_production(
package_name: APP_SPECIFIC_VALUES[app][:package_name],
version_code: version_code
)
{ ok: true }
rescue StandardError => e
UI.error("Failed to promote #{app} (#{version_code}): #{e.message}")
{ ok: false, error: e.message }
end
[app, result]
end
end
# Promotes the existing beta build to production — the scripted equivalent of the Play Console