Class: Fastlane::Actions::DeliverAction

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/actions/deliver.rb

Class Method Summary collapse

Class Method Details

.run(params) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fastlane/actions/deliver.rb', line 7

def self.run(params)
  require 'deliver'

  ENV['DELIVER_SCREENSHOTS_PATH'] = Actions.lane_context[SharedValues::SNAPSHOT_SCREENSHOTS_PATH]

  force = params.include?(:force)
  beta = params.include?(:beta)
  skip_deploy = params.include?(:skip_deploy)

  Dir.chdir(FastlaneFolder.path || Dir.pwd) do
    # This should be executed in the fastlane folder
    Deliver::Deliverer.new(nil,
                           force: force,
                           is_beta_ipa: beta,
                           skip_deploy: skip_deploy)

    Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = ENV['DELIVER_IPA_PATH'] # deliver will store it in the environment
  end
end