Class: Fastlane::Actions::PublishReleaseAction

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

Class Method Summary collapse

Class Method Details

.authorsObject



17
18
19
# File 'lib/fastlane/plugin/auth0_shipper/actions/publish_release_action.rb', line 17

def self.authors
  ["Hernan Zalazar"]
end

.available_optionsObject



29
30
31
# File 'lib/fastlane/plugin/auth0_shipper/actions/publish_release_action.rb', line 29

def self.available_options
  []
end

.descriptionObject



13
14
15
# File 'lib/fastlane/plugin/auth0_shipper/actions/publish_release_action.rb', line 13

def self.description
  "Performs a pending release represented by the latest tag"
end

.detailsObject



25
26
27
# File 'lib/fastlane/plugin/auth0_shipper/actions/publish_release_action.rb', line 25

def self.details
  "Performs the release of an Auth0 OSS library that include pod linter, push to git remote and push to CocoaPods trunk"
end

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/fastlane/plugin/auth0_shipper/actions/publish_release_action.rb', line 33

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

.return_valueObject



21
22
23
# File 'lib/fastlane/plugin/auth0_shipper/actions/publish_release_action.rb', line 21

def self.return_value

end

.run(params) ⇒ Object



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

def self.run(params)
  tag = Actions::LastGitTagAction.run({})
  UI.header "Publishing release #{tag} 📨"
  Actions::PodLibLintAction.run({})
  Actions::PushToGitRemoteAction.run({remote: 'origin', tags: true})
  Actions::PodPushAction.run({})
  UI.success "Shipped #{tag}! 🚀"
end