fastlane-plugin-aws_s3 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9f04e799720a6f1ed1b984a1c39f22ded8dce49a669a189ccd2e18f29b36d7c
|
4
|
+
data.tar.gz: e3ad279119bdd4e239d92b0766b8aa273c11b23d119bfcb70c7ad906dd0fead5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3626c0967c1194c77411eae31a34bf3f8b32cd6fa5517dcc329dbdaa34174c9cf84390784b4057fee2acb6cc3df7543f1d6ac1c87c8010eb95b0278c269ca99
|
7
|
+
data.tar.gz: 227ef2d0af69e8126a5f8fe122f163e5d5821e2cd45e6a70110e338cc578ebdcaeca7f131038b6a23b8fdf1bdc7dc53f329fe927d3d8cf3c1b359d7db4706d48
|
@@ -32,6 +32,7 @@ module Fastlane
|
|
32
32
|
params[:release_notes] = config[:release_notes]
|
33
33
|
params[:access_key] = config[:access_key]
|
34
34
|
params[:secret_access_key] = config[:secret_access_key]
|
35
|
+
params[:aws_session_token] = config[:aws_session_token]
|
35
36
|
params[:aws_profile] = config[:aws_profile]
|
36
37
|
params[:bucket] = config[:bucket]
|
37
38
|
params[:endpoint] = config[:endpoint]
|
@@ -65,6 +66,7 @@ module Fastlane
|
|
65
66
|
s3_region = params[:region]
|
66
67
|
s3_access_key = params[:access_key]
|
67
68
|
s3_secret_access_key = params[:secret_access_key]
|
69
|
+
s3_session_token = params[:aws_session_token]
|
68
70
|
s3_profile = params[:aws_profile]
|
69
71
|
s3_bucket = params[:bucket]
|
70
72
|
s3_endpoint = params[:endpoint]
|
@@ -89,7 +91,7 @@ module Fastlane
|
|
89
91
|
client_cfg[:region] = s3_region if s3_region
|
90
92
|
client_cfg[:endpoint] = s3_endpoint if s3_endpoint
|
91
93
|
client_cfg[:profile] = s3_profile if s3_profile
|
92
|
-
client_cfg[:credentials] = Aws::Credentials.new(s3_access_key, s3_secret_access_key) if s3_access_key && s3_secret_access_key
|
94
|
+
client_cfg[:credentials] = Aws::Credentials.new(s3_access_key, s3_secret_access_key, s3_session_token) if s3_access_key && s3_secret_access_key
|
93
95
|
|
94
96
|
s3_client = Aws::S3::Client.new(client_cfg)
|
95
97
|
|
@@ -176,7 +178,7 @@ module Fastlane
|
|
176
178
|
full_version = "#{bundle_version}.#{build_num}"
|
177
179
|
|
178
180
|
# Creating plist and html names
|
179
|
-
plist_file_name ||= "#{url_part}#{
|
181
|
+
plist_file_name ||= "#{url_part}#{CGI.escape(title.delete(' '))}.plist"
|
180
182
|
|
181
183
|
html_file_name ||= "index.html"
|
182
184
|
|
@@ -432,7 +434,7 @@ module Fastlane
|
|
432
434
|
html_url = self.upload_file(s3_client, s3_bucket, app_directory, html_file_name, html_render, acl, server_side_encryption, download_endpoint, download_endpoint_replacement_regex)
|
433
435
|
end
|
434
436
|
|
435
|
-
version_file_names do |version_file_name|
|
437
|
+
version_file_names.each do |version_file_name|
|
436
438
|
version_url = self.upload_file(s3_client, s3_bucket, app_directory, version_file_name, version_render, acl, server_side_encryption, download_endpoint, download_endpoint_replacement_regex)
|
437
439
|
end
|
438
440
|
|
@@ -736,6 +738,11 @@ module Fastlane
|
|
736
738
|
description: "AWS Secret Access Key ",
|
737
739
|
optional: true,
|
738
740
|
default_value: ENV['AWS_SECRET_ACCESS_KEY']),
|
741
|
+
FastlaneCore::ConfigItem.new(key: :aws_session_token,
|
742
|
+
env_name: "S3_SESSION_TOKEN",
|
743
|
+
description: "AWS Session TOKEN ",
|
744
|
+
optional: true,
|
745
|
+
default_value: ENV['AWS_SESSION_TOKEN']),
|
739
746
|
FastlaneCore::ConfigItem.new(key: :aws_profile,
|
740
747
|
env_name: "S3_PROFILE",
|
741
748
|
description: "AWS profile to use for credentials",
|
@@ -765,7 +772,7 @@ module Fastlane
|
|
765
772
|
optional: true),
|
766
773
|
FastlaneCore::ConfigItem.new(key: :acl,
|
767
774
|
env_name: "S3_ACL",
|
768
|
-
description: "Uploaded object permissions e.g
|
775
|
+
description: "Uploaded object permissions e.g public-read (default), private, public-read-write, authenticated-read ",
|
769
776
|
optional: true,
|
770
777
|
default_value: "public-read"),
|
771
778
|
FastlaneCore::ConfigItem.new(key: :server_side_encryption,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-aws_s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Holtz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.2.3
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Upload IPA and APK to S3
|