@@ -142,19 +142,6 @@ jobs:
142
142
name : firebase-windows-${{ matrix.arch }}
143
143
path : ${{ github.workspace }}/BuildRoot/Library/firebase
144
144
145
- - name : Create Release
146
- if : github.event_name != 'pull_request'
147
- env :
148
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
149
- run : |
150
- Compress-Archive -Path "${{ github.workspace }}/BuildRoot/Library/firebase" -DestinationPath firebase-windows-${{ matrix.arch }}.zip
151
- $SHA256 = Get-FileHash -Path firebase-windows-${{ matrix.arch }}.zip -Algorithm SHA256 > firebase-windows-${{ matrix.arch }}.zip.sha256
152
- $Date = Get-Date -Format 'yyyyMMdd'
153
- $Release = $(gh release list -R ${{ github.repository }} | Select-String -Pattern $Date -AllMatches).Count
154
- gh release create "$Date.$Release" -R ${{ github.repository }}
155
- gh release upload "$Date.$Release" firebase-windows-${{ matrix.arch }}.zip -R ${{ github.repository }}
156
- gh release upload "$Date.$Release" firebase-windows-${{ matrix.arch }}.zip.sha256 -R ${{ github.repository }}
157
-
158
145
- name : Print built libraries
159
146
run : Get-ChildItem -Recurse -Name -Path ${{ github.workspace }}\BuildRoot\Library\firebase -Include *.lib
160
147
@@ -451,8 +438,8 @@ jobs:
451
438
name : firebase-android-${{ matrix.arch }}
452
439
path : ${{ github.workspace }}/BuildRoot/Library/firebase
453
440
454
- release_android :
455
- needs : [android]
441
+ release :
442
+ needs : [windows, android]
456
443
if : github.event_name != 'pull_request'
457
444
runs-on : windows-latest
458
445
steps :
@@ -468,19 +455,43 @@ jobs:
468
455
name : firebase-android-x86_64
469
456
path : ${{ github.workspace }}/firebase-android-x86_64
470
457
458
+ - name : Download firebase-windows-amd64 artifact
459
+ uses : actions/download-artifact@v3
460
+ with :
461
+ name : firebase-windows-amd64
462
+ path : ${{ github.workspace }}/firebase-windows-amd64
463
+
464
+ - name : Download firebase-windows-arm64 artifact
465
+ uses : actions/download-artifact@v3
466
+ with :
467
+ name : firebase-windows-arm64
468
+ path : ${{ github.workspace }}/firebase-windows-arm64
469
+
471
470
- name : Create Release
472
471
env :
473
472
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
474
473
run : |
475
474
Compress-Archive -Path "${{ github.workspace }}/firebase-android-arm64-v8a" -DestinationPath firebase-android-arm64-v8a.zip
476
- $SHA256_arm64 = Get-FileHash -Path firebase-android-arm64-v8a.zip -Algorithm SHA256 > firebase-android-arm64-v8a.zip.sha256
475
+ Get-FileHash -Path firebase-android-arm64-v8a.zip -Algorithm SHA256 > firebase-android-arm64-v8a.zip.sha256
476
+
477
477
Compress-Archive -Path "${{ github.workspace }}/firebase-android-x86_64" -DestinationPath firebase-android-x86_64.zip
478
- $SHA256_x86_64 = Get-FileHash -Path firebase-android-x86_64.zip -Algorithm SHA256 > firebase-android-x86_64.zip.sha256
478
+ Get-FileHash -Path firebase-android-x86_64.zip -Algorithm SHA256 > firebase-android-x86_64.zip.sha256
479
+
480
+ Compress-Archive -Path "${{ github.workspace }}/firebase-windows-amd64" -DestinationPath firebase-windows-amd64.zip
481
+ Get-FileHash -Path firebase-windows-amd64.zip -Algorithm SHA256 > firebase-windows-amd64.zip.sha256
482
+
483
+ Compress-Archive -Path "${{ github.workspace }}/firebase-windows-arm64" -DestinationPath firebase-windows-arm64.zip
484
+ Get-FileHash -Path firebase-windows-arm64.zip -Algorithm SHA256 > firebase-windows-arm64.zip.sha256
485
+
479
486
$Date = Get-Date -Format 'yyyyMMdd'
480
487
$Release = $(gh release list -R ${{ github.repository }} | Select-String -Pattern $Date -AllMatches).Count
481
488
gh release create "$Date.$Release" -R ${{ github.repository }}
482
489
gh release upload "$Date.$Release" firebase-android-arm64-v8a.zip -R ${{ github.repository }}
483
490
gh release upload "$Date.$Release" firebase-android-arm64-v8a.zip.sha256 -R ${{ github.repository }}
484
491
gh release upload "$Date.$Release" firebase-android-x86_64.zip -R ${{ github.repository }}
485
492
gh release upload "$Date.$Release" firebase-android-x86_64.zip.sha256 -R ${{ github.repository }}
493
+ gh release upload "$Date.$Release" firebase-windows-amd64.zip -R ${{ github.repository }}
494
+ gh release upload "$Date.$Release" firebase-windows-amd64.zip.sha256 -R ${{ github.repository }}
495
+ gh release upload "$Date.$Release" firebase-windows-arm64.zip -R ${{ github.repository }}
496
+ gh release upload "$Date.$Release" firebase-windows-arm64.zip.sha256 -R ${{ github.repository }}
486
497
0 commit comments