Class: Fastlane::Actions::PerformReleaseAction

Inherits:
Action
  • Object
show all
Defined in:
lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb

Class Method Summary collapse

Class Method Details

.authorsObject


15
16
17
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 15

def self.authors
  ["Hernan Zalazar"]
end

.available_optionsObject


27
28
29
30
31
32
33
34
35
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 27

def self.available_options
  [
    FastlaneCore::ConfigItem.new(key: :target,
                            env_name: "AUTH0_SHIPPER_TARGET",
                         description: "Xcode target for the Library",
                            optional: true,
                                type: String)
  ]
end

.descriptionObject


11
12
13
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 11

def self.description
  "Performs the release for an Auth0 OSS library"
end

.detailsObject


23
24
25
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 23

def self.details
  "Performs the release of an Auth0 OSS library by creating a tag and pushing it to the remote, and creating the Github Release"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)

37
38
39
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 37

def self.is_supported?(platform)
  [:ios].include?(platform)
end

.return_valueObject


19
20
21
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 19

def self.return_value

end

.run(params) ⇒ Object


4
5
6
7
8
9
# File 'lib/fastlane/plugin/auth0_shipper/actions/perform_release_action.rb', line 4

def self.run(params)
  version = Helper::Auth0ShipperHelper.ios_current_version(params[:target])
  UI.header "Performing release for version #{version} 🏗"
  Actions::AddGitTagAction.run(tag: version.to_s)
  Actions::PushGitTagsAction.run({remote: 'origin', tag: version.to_s})
end