-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
lib/fastlane/plugin/carthage_cache/actions/carthage_cache_publish.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module Fastlane | ||
module Actions | ||
class CarthageCachePublishAction < Action | ||
def self.run(params) | ||
UI.message("Uploading Carthage cache to Amazon S3...") | ||
sh "bundle exec carthage_cache publish --bucket-name #{params[:bucket]}" | ||
end | ||
|
||
def self.description | ||
%q{Upload Carthage cache to Amazon S3} | ||
end | ||
|
||
def self.authors | ||
[%q{thii}] | ||
end | ||
|
||
def self.available_options | ||
[ | ||
FastlaneCore::ConfigItem.new(key: :bucket, | ||
env_name: "CARTHAGE_CACHE_BUCKET", | ||
description: "Amazon S3 bucket name which caches your Carthage build", | ||
optional: false, | ||
type: String) | ||
] | ||
end | ||
|
||
def self.is_supported?(platform) | ||
[:ios, :mac, :tvos, :watchos].include?(platform) | ||
end | ||
end | ||
end | ||
end |