Sha256: d553556ae4c0177ab362d3bd0c61246eb9c316a7dace47c1bbc18cfd2f88c759
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
module Fastlane module Actions module SharedValues end class DeliverAction < Action def self.run(params) require 'deliver' FastlaneCore::UpdateChecker.start_looking_for_update('deliver') begin 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(ENV["DELIVERFILE_PATH"] || 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) if ENV['DELIVER_IPA_PATH'] # since IPA upload is optional Actions.lane_context[SharedValues::IPA_OUTPUT_PATH] = File.expand_path(ENV['DELIVER_IPA_PATH']) # deliver will store it in the environment end end ensure FastlaneCore::UpdateChecker.show_update_status('deliver', Deliver::VERSION) end end def self.description "Uses deliver to upload new app metadata and builds to iTunes Connect" end def self.available_options [ ['force', 'Set to true to skip PDF verification'], ['beta', 'Upload a new version to TestFlight'], ['skip_deploy', 'Skip the submission of the app - it will only be uploaded'], ['', 'Specify a path to the directory containing the Deliverfile', 'DELIVERFILE_PATH'] ] end def self.author "KrauseFx" end def self.is_supported?(platform) platform == :ios end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane-0.11.0 | lib/fastlane/actions/deliver.rb |