@@ -85,31 +85,19 @@ jobs:
85
85
MYAPP_UPLOAD_KEY_PASSWORD : ${{ secrets.MYAPP_UPLOAD_KEY_PASSWORD }}
86
86
VERSION : ${{ env.VERSION_CODE }}
87
87
88
- - name : Archive Android sourcemaps
89
- uses : actions/upload-artifact@v4
90
- with :
91
- name : android-sourcemap-${{ github.event.release.tag_name }}
92
- path : android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map
93
-
94
- - name : Upload Android build to GitHub artifacts
95
- if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
96
- uses : actions/upload-artifact@v4
97
- with :
98
- name : app-production-release.aab
99
- path : android/app/build/outputs/bundle/productionRelease/app-production-release.aab
100
-
101
88
- name : Upload Android build to Browser Stack
102
89
if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
103
90
run : curl -u "$BROWSERSTACK" -X POST "https://api-cloud.browserstack.com/app-live/upload" -F "file=@./android/app/build/outputs/bundle/productionRelease/app-production-release.aab"
104
91
env :
105
92
BROWSERSTACK : ${{ secrets.BROWSERSTACK }}
106
93
94
+ - name : Upload Android sourcemaps to GitHub Release
95
+ if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
96
+ run : gh release upload ${{ github.event.release.tag_name }} android/app/build/generated/sourcemaps/react/productionRelease/index.android.bundle.map#android-sourcemap-${{ github.event.release.tag_name }}
97
+
107
98
- name : Upload Android build to GitHub Release
108
- if : ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
109
- run : |
110
- RUN_ID="$(gh run list --workflow platformDeploy.yml --event push --branch ${{ github.event.release.tag_name }} --json databaseId --jq '.[0].databaseId')"
111
- gh run download "$RUN_ID" --name app-production-release.aab
112
- gh release upload ${{ github.event.release.tag_name }} app-production-release.aab
99
+ if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
100
+ run : gh release upload ${{ github.event.release.tag_name }} android/app/build/outputs/bundle/productionRelease/app-production-release.aab
113
101
env :
114
102
GITHUB_TOKEN : ${{ github.token }}
115
103
@@ -164,24 +152,14 @@ jobs:
164
152
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
165
153
GCP_GEOLOCATION_API_KEY : $${{ secrets.GCP_GEOLOCATION_API_KEY_PRODUCTION }}
166
154
167
- - name : Upload desktop build to GitHub Workflow
168
- uses : actions/upload-artifact@v4
169
- with :
170
- name : NewExpensify.dmg
171
- path : desktop-build/NewExpensify.dmg
155
+ - name : Upload desktop sourcemaps to GitHub Release
156
+ run : gh release upload ${{ github.event.release.tag_name }} desktop/dist/www/merged-source-map.js.map#desktop-sourcemap-${{ github.event.release.tag_name }} --clobber
172
157
173
158
- name : Upload desktop build to GitHub Release
174
- if : ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
175
- run : gh release upload ${{ github.event.release.tag_name }} desktop-build/NewExpensify.dmg
159
+ run : gh release upload ${{ github.event.release.tag_name }} desktop-build/NewExpensify.dmg --clobber
176
160
env :
177
161
GITHUB_TOKEN : ${{ github.token }}
178
162
179
- - name : Archive desktop sourcemaps
180
- uses : actions/upload-artifact@v4
181
- with :
182
- name : desktop-sourcemap-${{ github.event.release.tag_name }}
183
- path : desktop/dist/www/merged-source-map.js.map
184
-
185
163
iOS :
186
164
name : Build and deploy iOS
187
165
needs : validateActor
@@ -257,31 +235,19 @@ jobs:
257
235
APPLE_DEMO_PASSWORD : ${{ secrets.APPLE_DEMO_PASSWORD }}
258
236
VERSION : ${{ env.IOS_VERSION }}
259
237
260
- - name : Archive iOS sourcemaps
261
- uses : actions/upload-artifact@v4
262
- with :
263
- name : ios-sourcemap-${{ github.event.release.tag_name }}
264
- path : main.jsbundle.map
265
-
266
- - name : Upload iOS build to GitHub artifacts
267
- if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
268
- uses : actions/upload-artifact@v4
269
- with :
270
- name : New Expensify.ipa
271
- path : /Users/runner/work/App/App/New Expensify.ipa
272
-
273
238
- name : Upload iOS build to Browser Stack
274
239
if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
275
240
run : curl -u "$BROWSERSTACK" -X POST "https://api-cloud.browserstack.com/app-live/upload" -F "file=@/Users/runner/work/App/App/New Expensify.ipa"
276
241
env :
277
242
BROWSERSTACK : ${{ secrets.BROWSERSTACK }}
278
243
244
+ - name : Upload iOS sourcemaps to GitHub Release
245
+ if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
246
+ run : gh release upload ${{ github.event.release.tag_name }} main.jsbundle.map#ios-sourcemap-${{ github.event.release.tag_name }}
247
+
279
248
- name : Upload iOS build to GitHub Release
280
- if : ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
281
- run : |
282
- RUN_ID="$(gh run list --workflow platformDeploy.yml --event push --branch ${{ github.event.release.tag_name }} --json databaseId --jq '.[0].databaseId')"
283
- gh run download "$RUN_ID" --name 'New Expensify.ipa'
284
- gh release upload ${{ github.event.release.tag_name }} 'New Expensify.ipa'
249
+ if : ${{ !fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
250
+ run : gh release upload ${{ github.event.release.tag_name }} /Users/runner/work/App/App/New Expensify.ipa
285
251
env :
286
252
GITHUB_TOKEN : ${{ github.token }}
287
253
@@ -350,12 +316,6 @@ jobs:
350
316
env :
351
317
S3_URL : s3://${{ env.SHOULD_DEPLOY_PRODUCTION != 'true' && 'staging-' || '' }}expensify-cash
352
318
353
- - name : Archive web sourcemaps
354
- uses : actions/upload-artifact@v4
355
- with :
356
- name : web-sourcemap-${{ github.event.release.tag_name }}
357
- path : dist/merged-source-map.js.map
358
-
359
319
- name : Purge Cloudflare cache
360
320
run : /home/runner/.local/bin/cli4 --verbose --delete hosts=["${{ env.SHOULD_DEPLOY_PRODUCTION != 'true' && 'staging.' || '' }}new.expensify.com"] /zones/:9ee042e6cfc7fd45e74aa7d2f78d617b/purge_cache
361
321
env :
@@ -379,18 +339,14 @@ jobs:
379
339
exit 1
380
340
fi
381
341
382
- - name : Upload web build to GitHub artifacts
383
- uses : actions/upload-artifact@v4
384
- with :
385
- name : web-build
386
- path : dist
342
+ - name : Upload web sourcemaps to GitHub Release
343
+ run : gh release upload ${{ github.event.release.tag_name }} dist/merged-source-map.js.map#web-sourcemap-${{ github.event.release.tag_name }} --clobber
387
344
388
345
- name : Upload web build to GitHub Release
389
- if : ${{ fromJSON(env.SHOULD_DEPLOY_PRODUCTION) }}
390
346
run : |
391
347
tar -czvf webBuild.tar.gz dist
392
348
zip -r webBuild.zip dist
393
- gh release upload ${{ github.event.release.tag_name }} webBuild.tar.gz webBuild.zip
349
+ gh release upload ${{ github.event.release.tag_name }} webBuild.tar.gz webBuild.zip --clobber
394
350
env :
395
351
GITHUB_TOKEN : ${{ github.token }}
396
352
@@ -412,7 +368,7 @@ jobs:
412
368
hybridApp :
413
369
runs-on : ubuntu-latest
414
370
needs : validateActor
415
- if : ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) && github.event_name == 'push ' }}
371
+ if : ${{ fromJSON(needs.validateActor.outputs.IS_DEPLOYER) && github.event.action != 'released ' }}
416
372
steps :
417
373
- name : Checkout
418
374
uses : actions/checkout@v4
0 commit comments