Skip to content

Commit e879c4e

Browse files
authored
Migrate release uploads to Apps CDN (#1422)
- Migrate Fastlane release uploads to Apps CDN. - Upgrade the wpmreleasetoolkit gem to version 13.7.
1 parent a7402eb commit e879c4e

File tree

7 files changed

+269
-443
lines changed

7 files changed

+269
-443
lines changed

.buildkite/commands/post-process-binary-for-distribution.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.buildkite/pipeline.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,10 @@ steps:
152152
153153
echo "--- :node: Generating Release Manifest"
154154
node ./scripts/prepare-dev-build-version.mjs
155-
node ./scripts/generate-releases-manifest.mjs
156155
157156
echo "--- :fastlane: Distributing Dev Builds"
158157
install_gems
159158
bundle exec fastlane distribute_dev_build
160-
artifact_paths:
161-
- out/releases.json
162159
agents:
163160
queue: mac
164161
# Using concurrency_group to ensure the CI builds from `trunk` & the git tag, which are likely to run at roughly the
@@ -256,14 +253,9 @@ steps:
256253
257254
.buildkite/commands/install-node-dependencies.sh
258255
259-
echo "--- :node: Generating Release Manifest"
260-
node ./scripts/generate-releases-manifest.mjs
261-
262256
echo "--- :fastlane: Distributing Release Builds"
263257
install_gems
264258
bundle exec fastlane distribute_release_build
265-
artifact_paths:
266-
- out/releases.json
267259
agents:
268260
queue: mac
269261
# Using concurrency_group to ensure the CI builds from `trunk` & the git tag, which are likely to run at roughly the

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source 'https://rubygems.org'
44

55
gem 'fastlane', '~> 2.212'
6-
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 12.0'
6+
gem 'fastlane-plugin-wpmreleasetoolkit', '~> 13.7'
77

88
gem 'aws-sdk-cloudfront', '~> 1.87'
99

Gemfile.lock

Lines changed: 72 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (8.0.2)
8+
activesupport (8.1.1)
99
base64
10-
benchmark (>= 0.3)
1110
bigdecimal
1211
concurrent-ruby (~> 1.0, >= 1.3.1)
1312
connection_pool (>= 2.2.5)
1413
drb
1514
i18n (>= 1.6, < 2)
15+
json
1616
logger (>= 1.4.2)
1717
minitest (>= 5.1)
1818
securerandom (>= 0.3)
@@ -23,29 +23,31 @@ GEM
2323
artifactory (3.0.17)
2424
ast (2.4.2)
2525
atomos (0.1.3)
26-
aws-eventstream (1.3.0)
27-
aws-partitions (1.970.0)
26+
aws-eventstream (1.4.0)
27+
aws-partitions (1.1179.0)
2828
aws-sdk-cloudfront (1.96.0)
2929
aws-sdk-core (~> 3, >= 3.201.0)
3030
aws-sigv4 (~> 1.5)
31-
aws-sdk-core (3.202.2)
31+
aws-sdk-core (3.236.0)
3232
aws-eventstream (~> 1, >= 1.3.0)
33-
aws-partitions (~> 1, >= 1.651.0)
33+
aws-partitions (~> 1, >= 1.992.0)
3434
aws-sigv4 (~> 1.9)
35+
base64
36+
bigdecimal
3537
jmespath (~> 1, >= 1.6.1)
36-
aws-sdk-kms (1.88.0)
37-
aws-sdk-core (~> 3, >= 3.201.0)
38+
logger
39+
aws-sdk-kms (1.116.0)
40+
aws-sdk-core (~> 3, >= 3.234.0)
3841
aws-sigv4 (~> 1.5)
39-
aws-sdk-s3 (1.159.0)
40-
aws-sdk-core (~> 3, >= 3.201.0)
42+
aws-sdk-s3 (1.202.0)
43+
aws-sdk-core (~> 3, >= 3.234.0)
4144
aws-sdk-kms (~> 1)
4245
aws-sigv4 (~> 1.5)
43-
aws-sigv4 (1.9.1)
46+
aws-sigv4 (1.12.1)
4447
aws-eventstream (~> 1, >= 1.0.2)
4548
babosa (1.0.4)
46-
base64 (0.2.0)
47-
benchmark (0.4.0)
48-
bigdecimal (3.1.9)
49+
base64 (0.3.0)
50+
bigdecimal (3.3.1)
4951
buildkit (1.6.1)
5052
sawyer (>= 0.6)
5153
chroma (0.2.0)
@@ -55,17 +57,17 @@ GEM
5557
commander (4.6.0)
5658
highline (~> 2.0.0)
5759
concurrent-ruby (1.3.5)
58-
connection_pool (2.5.0)
60+
connection_pool (2.5.4)
5961
declarative (0.0.20)
60-
diffy (3.4.3)
61-
digest-crc (0.6.5)
62+
diffy (3.4.4)
63+
digest-crc (0.7.0)
6264
rake (>= 12.0.0, < 14.0.0)
6365
domain_name (0.6.20240107)
6466
dotenv (2.8.1)
65-
drb (2.2.1)
67+
drb (2.2.3)
6668
emoji_regex (3.2.3)
67-
excon (0.111.0)
68-
faraday (1.10.3)
69+
excon (0.112.0)
70+
faraday (1.10.4)
6971
faraday-em_http (~> 1.0)
7072
faraday-em_synchrony (~> 1.0)
7173
faraday-excon (~> 1.1)
@@ -81,20 +83,20 @@ GEM
8183
faraday (>= 0.8.0)
8284
http-cookie (~> 1.0.0)
8385
faraday-em_http (1.0.0)
84-
faraday-em_synchrony (1.0.0)
86+
faraday-em_synchrony (1.0.1)
8587
faraday-excon (1.1.0)
8688
faraday-httpclient (1.0.1)
87-
faraday-multipart (1.0.4)
88-
multipart-post (~> 2)
89+
faraday-multipart (1.1.1)
90+
multipart-post (~> 2.0)
8991
faraday-net_http (1.0.2)
9092
faraday-net_http_persistent (1.2.0)
9193
faraday-patron (1.0.0)
9294
faraday-rack (1.0.0)
9395
faraday-retry (1.0.3)
94-
faraday_middleware (1.2.0)
96+
faraday_middleware (1.2.1)
9597
faraday (~> 1.0)
96-
fastimage (2.3.1)
97-
fastlane (2.222.0)
98+
fastimage (2.4.0)
99+
fastlane (2.228.0)
98100
CFPropertyList (>= 2.3, < 4.0.0)
99101
addressable (>= 2.8, < 3.0.0)
100102
artifactory (~> 3.0)
@@ -110,6 +112,7 @@ GEM
110112
faraday-cookie_jar (~> 0.0.6)
111113
faraday_middleware (~> 1.0)
112114
fastimage (>= 2.1.0, < 3.0.0)
115+
fastlane-sirp (>= 1.0.0)
113116
gh_inspector (>= 1.1.2, < 2.0.0)
114117
google-apis-androidpublisher_v3 (~> 0.3)
115118
google-apis-playcustomapp_v1 (~> 0.1)
@@ -133,9 +136,9 @@ GEM
133136
tty-spinner (>= 0.8.0, < 1.0.0)
134137
word_wrap (~> 1.0.0)
135138
xcodeproj (>= 1.13.0, < 2.0.0)
136-
xcpretty (~> 0.3.0)
139+
xcpretty (~> 0.4.1)
137140
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
138-
fastlane-plugin-wpmreleasetoolkit (12.5.0)
141+
fastlane-plugin-wpmreleasetoolkit (13.7.0)
139142
activesupport (>= 6.1.7.1)
140143
buildkit (~> 1.5)
141144
chroma (= 0.2.0)
@@ -152,6 +155,8 @@ GEM
152155
rake (>= 12.3, < 14.0)
153156
rake-compiler (~> 1.0)
154157
xcodeproj (~> 1.22)
158+
fastlane-sirp (1.0.0)
159+
sysrandom (~> 1.0)
155160
gh_inspector (1.1.3)
156161
git (1.19.1)
157162
addressable (~> 2.8)
@@ -172,12 +177,12 @@ GEM
172177
google-apis-core (>= 0.11.0, < 2.a)
173178
google-apis-storage_v1 (0.31.0)
174179
google-apis-core (>= 0.11.0, < 2.a)
175-
google-cloud-core (1.7.1)
180+
google-cloud-core (1.8.0)
176181
google-cloud-env (>= 1.0, < 3.a)
177182
google-cloud-errors (~> 1.0)
178183
google-cloud-env (1.6.0)
179184
faraday (>= 0.17.3, < 3.0)
180-
google-cloud-errors (1.4.0)
185+
google-cloud-errors (1.5.0)
181186
google-cloud-storage (1.47.0)
182187
addressable (~> 2.8)
183188
digest-crc (~> 0.4)
@@ -193,61 +198,63 @@ GEM
193198
os (>= 0.9, < 2.0)
194199
signet (>= 0.16, < 2.a)
195200
highline (2.0.3)
196-
http-cookie (1.0.7)
201+
http-cookie (1.0.8)
197202
domain_name (~> 0.5)
198-
httpclient (2.8.3)
203+
httpclient (2.9.0)
204+
mutex_m
199205
i18n (1.14.7)
200206
concurrent-ruby (~> 1.0)
201207
java-properties (0.3.0)
202208
jmespath (1.6.2)
203-
json (2.7.2)
204-
jwt (2.8.2)
209+
json (2.15.2)
210+
jwt (2.10.2)
205211
base64
206212
language_server-protocol (3.17.0.3)
207-
logger (1.6.6)
213+
logger (1.7.0)
208214
mini_magick (4.13.2)
209215
mini_mime (1.1.5)
210-
minitest (5.25.5)
211-
multi_json (1.15.0)
216+
minitest (5.26.0)
217+
multi_json (1.17.0)
212218
multipart-post (2.4.1)
213-
nanaimo (0.3.0)
214-
naturally (2.2.1)
219+
mutex_m (0.3.0)
220+
nanaimo (0.4.0)
221+
naturally (2.3.0)
215222
nkf (0.2.0)
216-
nokogiri (1.18.9-aarch64-linux-gnu)
223+
nokogiri (1.18.10-aarch64-linux-gnu)
217224
racc (~> 1.4)
218-
nokogiri (1.18.9-arm64-darwin)
225+
nokogiri (1.18.10-arm64-darwin)
219226
racc (~> 1.4)
220-
nokogiri (1.18.9-x86_64-linux-gnu)
227+
nokogiri (1.18.10-x86_64-linux-gnu)
221228
racc (~> 1.4)
222229
octokit (6.1.1)
223230
faraday (>= 1, < 3)
224231
sawyer (~> 0.9)
225232
options (2.3.2)
226-
optparse (0.5.0)
233+
optparse (0.8.0)
227234
os (1.1.4)
228-
parallel (1.26.3)
235+
parallel (1.27.0)
229236
parser (3.3.4.2)
230237
ast (~> 2.4.1)
231238
racc
232-
plist (3.7.1)
239+
plist (3.7.2)
233240
progress_bar (1.3.4)
234241
highline (>= 1.6)
235242
options (~> 2.3.0)
236-
public_suffix (6.0.1)
243+
public_suffix (6.0.2)
237244
racc (1.8.1)
238245
rainbow (3.1.1)
239-
rake (13.2.1)
240-
rake-compiler (1.2.9)
246+
rake (13.3.1)
247+
rake-compiler (1.3.0)
241248
rake
242-
rchardet (1.9.0)
249+
rchardet (1.10.0)
243250
regexp_parser (2.9.2)
244251
representable (3.2.0)
245252
declarative (< 0.1.0)
246253
trailblazer-option (>= 0.1.1, < 0.2.0)
247254
uber (< 0.2.0)
248255
retriable (3.1.2)
249-
rexml (3.4.2)
250-
rouge (2.0.7)
256+
rexml (3.4.4)
257+
rouge (3.28.0)
251258
rubocop (1.66.0)
252259
json (~> 2.3)
253260
language_server-protocol (>= 3.17.0)
@@ -262,20 +269,21 @@ GEM
262269
parser (>= 3.3.1.0)
263270
ruby-progressbar (1.13.0)
264271
ruby2_keywords (0.0.5)
265-
rubyzip (2.3.2)
266-
sawyer (0.9.2)
272+
rubyzip (2.4.1)
273+
sawyer (0.9.3)
267274
addressable (>= 2.3.5)
268275
faraday (>= 0.17.3, < 3)
269276
securerandom (0.4.1)
270277
security (0.1.5)
271-
signet (0.19.0)
278+
signet (0.21.0)
272279
addressable (~> 2.8)
273280
faraday (>= 0.17.5, < 3.a)
274-
jwt (>= 1.5, < 3.0)
281+
jwt (>= 1.5, < 4.0)
275282
multi_json (~> 1.10)
276283
simctl (1.6.10)
277284
CFPropertyList
278285
naturally
286+
sysrandom (1.0.5)
279287
terminal-notifier (2.0.0)
280288
terminal-table (3.0.2)
281289
unicode-display_width (>= 1.1.1, < 3)
@@ -287,31 +295,32 @@ GEM
287295
tzinfo (2.0.6)
288296
concurrent-ruby (~> 1.0)
289297
uber (0.1.0)
290-
unicode-display_width (2.5.0)
291-
uri (1.0.3)
298+
unicode-display_width (2.6.0)
299+
uri (1.1.1)
292300
word_wrap (1.0.0)
293-
xcodeproj (1.25.0)
301+
xcodeproj (1.27.0)
294302
CFPropertyList (>= 2.3.3, < 4.0)
295303
atomos (~> 0.1.3)
296304
claide (>= 1.0.2, < 2.0)
297305
colored2 (~> 3.1)
298-
nanaimo (~> 0.3.0)
299-
rexml (>= 3.3.2, < 4.0)
300-
xcpretty (0.3.0)
301-
rouge (~> 2.0.7)
306+
nanaimo (~> 0.4.0)
307+
rexml (>= 3.3.6, < 4.0)
308+
xcpretty (0.4.1)
309+
rouge (~> 3.28.0)
302310
xcpretty-travis-formatter (1.0.1)
303311
xcpretty (~> 0.2, >= 0.0.7)
304312

305313
PLATFORMS
306314
aarch64-linux
307315
arm64-darwin-22
308316
arm64-darwin-23
317+
arm64-darwin-24
309318
x86_64-linux
310319

311320
DEPENDENCIES
312321
aws-sdk-cloudfront (~> 1.87)
313322
fastlane (~> 2.212)
314-
fastlane-plugin-wpmreleasetoolkit (~> 12.0)
323+
fastlane-plugin-wpmreleasetoolkit (~> 13.7)
315324
rubocop (~> 1.42)
316325

317326
BUNDLED WITH

docs/versioning-and-updates.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,4 @@ latest dev build, then will be updated to the prod build. Otherwise, to the late
4242

4343
## Releases Manifest and CDN
4444

45-
CI uses the `generate-releases-manifest.json` script to genreate a
46-
`releases.json` file which acts as an authoritative source of update info for
47-
the update server.
48-
49-
When CI has finished building installers it uploads installers _and_ the
50-
releases manifest to the CDN for distribution.
45+
The `releases.json` file serves as an authoritative source of update information for the App to update. It is generated entirely by the Apps CDN endpoint https://appscdn.wordpress.com/builds/wordpress-com-studio/releases.json proxied from https://public-api.wordpress.com/wpcom/v2/studio-app/updates?platform=darwin&arch=arm64&version=1.5.3-dev2

0 commit comments

Comments
 (0)