fastlane-plugin-upload_to_oss 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ee63c3b5d77434e58efcb0df189e0789421a45fa75de7d5cb55bf336a7d9326
|
4
|
+
data.tar.gz: f14dd665d2c0a8ec04b72c1ccb0b8267b8b2ef0e79557387b54c1266a3c6d711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dbdfd7458ecc22e3ac0384fe893773b5e042150523f097627d25ebaa4cdd48012259d778e5695a7d98f37acaee5a955366184a571e6924eb057eece310e5797
|
7
|
+
data.tar.gz: a6772f083a0bbb3232e09db4c9e503b914cc64381550b2d965593cac074e7f13e9c54b9ca6cc089db9c7c628af779d4ae102e5e6395ac0f9ed1ab6cbcc4851cb
|
@@ -47,20 +47,21 @@ module Fastlane
|
|
47
47
|
UI.message("upload ipa ...")
|
48
48
|
result = bucket_object.put_object(object_key, :file => ipa)
|
49
49
|
|
50
|
-
|
50
|
+
if result
|
51
51
|
|
52
|
-
|
53
|
-
|
54
|
-
|
52
|
+
endpoint_host = URI.parse(endpoint).host
|
53
|
+
ipa_url = "https://#{bucket}.#{endpoint_host}/#{object_key}"
|
54
|
+
UI.message("put_object over!")
|
55
55
|
|
56
|
-
|
56
|
+
Actions.lane_context[SharedValues::OSS_IPA_OUTPUT_URL] = ipa_url
|
57
57
|
|
58
|
-
|
58
|
+
UI.message("lane_context OSS_IPA_OUTPUT_URL:#{Actions.lane_context[SharedValues::OSS_IPA_OUTPUT_URL]}")
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
else
|
61
|
+
UI.error("upload fail")
|
62
|
+
end
|
63
63
|
|
64
|
+
return ipa_url
|
64
65
|
end
|
65
66
|
|
66
67
|
def self.description
|
@@ -77,7 +78,7 @@ module Fastlane
|
|
77
78
|
|
78
79
|
def self.output
|
79
80
|
[
|
80
|
-
['
|
81
|
+
['OSS_IPA_OUTPUT_URL', 'ipa file oss url']
|
81
82
|
]
|
82
83
|
end
|
83
84
|
|
@@ -89,38 +90,38 @@ module Fastlane
|
|
89
90
|
def self.available_options
|
90
91
|
[
|
91
92
|
FastlaneCore::ConfigItem.new(key: :ipa,
|
92
|
-
env_name: "
|
93
|
+
env_name: "UPLOAD_TO_OSS_IPA",
|
93
94
|
description: ".ipa file for the build",
|
94
95
|
optional: true,
|
95
96
|
default_value: Actions.lane_context[SharedValues::IPA_OUTPUT_PATH]),
|
96
97
|
FastlaneCore::ConfigItem.new(key: :dsym,
|
97
|
-
env_name: "
|
98
|
+
env_name: "UPLOAD_TO_OSS_DSYM",
|
98
99
|
description: "zipped .dsym package for the build ",
|
99
100
|
optional: true,
|
100
101
|
default_value: Actions.lane_context[SharedValues::DSYM_OUTPUT_PATH]),
|
101
102
|
FastlaneCore::ConfigItem.new(key: :endpoint,
|
102
|
-
env_name: "
|
103
|
+
env_name: "UPLOAD_TO_OSS_ENDPOINT",
|
103
104
|
description: "oss endpoint, default value http://oss-cn-qingdao.aliyuncs.com",
|
104
105
|
optional: true,
|
105
106
|
default_value: "http://oss-cn-qingdao.aliyuncs.com"),
|
106
107
|
|
107
108
|
FastlaneCore::ConfigItem.new(key: :key,
|
108
|
-
env_name: "
|
109
|
+
env_name: "UPLOAD_TO_OSS_KEY",
|
109
110
|
description: "oss key",
|
110
111
|
optional: true,
|
111
112
|
default_value: ENV['OSS_ACCESS_KEY_ID']),
|
112
113
|
FastlaneCore::ConfigItem.new(key: :secret,
|
113
|
-
env_name: "
|
114
|
+
env_name: "UPLOAD_TO_OSS_SECRET",
|
114
115
|
description: "oss secret",
|
115
116
|
optional: true,
|
116
117
|
default_value: ENV['OSS_ACCESS_KEY_SECRET']),
|
117
118
|
FastlaneCore::ConfigItem.new(key: :bucket,
|
118
|
-
env_name: "
|
119
|
+
env_name: "UPLOAD_TO_OSS_BUCKET",
|
119
120
|
description: "oss bucket",
|
120
121
|
optional: false,
|
121
122
|
type: String),
|
122
123
|
FastlaneCore::ConfigItem.new(key: :object_path,
|
123
|
-
env_name: "
|
124
|
+
env_name: "UPLOAD_TO_OSS_OBJECT_PATH",
|
124
125
|
description: "oss object key 'foo/bar/file', object path 'foo/bar'",
|
125
126
|
optional: false,
|
126
127
|
type: String),
|