@@ -178,7 +178,7 @@ jobs:
178
178
tar -czhf ../packaging-tools.tgz .
179
179
180
180
- name : upload artifacts
181
- uses : actions/upload-artifact@v3
181
+ uses : actions/upload-artifact@v4
182
182
with :
183
183
name : packaging-tools-${{ matrix.tools_platform }}
184
184
path : packaging-tools.tgz
@@ -236,7 +236,7 @@ jobs:
236
236
find firebase-cpp-sdk-*-package -type f
237
237
238
238
- name : upload artifacts
239
- uses : actions/upload-artifact@v3
239
+ uses : actions/upload-artifact@v4
240
240
with :
241
241
name : firebase-cpp-sdk-ios-tvos-package
242
242
path : firebase-cpp-sdk-ios-tvos-package.tgz
@@ -296,7 +296,7 @@ jobs:
296
296
find firebase-cpp-sdk-*-package -type f
297
297
298
298
- name : upload artifacts
299
- uses : actions/upload-artifact@v3
299
+ uses : actions/upload-artifact@v4
300
300
with :
301
301
name : firebase-cpp-sdk-android-package
302
302
path : firebase-cpp-sdk-android-package.tgz
@@ -450,7 +450,7 @@ jobs:
450
450
continue-on-error : true
451
451
452
452
- name : upload artifacts
453
- uses : actions/upload-artifact@v3
453
+ uses : actions/upload-artifact@v4
454
454
with :
455
455
name : firebase-cpp-sdk-${{ env.SDK_NAME }}-build
456
456
path : firebase-cpp-sdk-${{ env.SDK_NAME }}-build.tgz
@@ -509,12 +509,17 @@ jobs:
509
509
with :
510
510
path : sdk-src
511
511
512
- - name : download artifact
513
- uses : actions/download-artifact@v3
512
+ - name : download packaging-tool artifacts
513
+ uses : actions/download-artifact@v4
514
+ with :
515
+ path : artifacts
516
+ pattern : packaging-tools-*
517
+
518
+ - name : download build artifacts
519
+ uses : actions/download-artifact@v4
514
520
with :
515
- # download-artifact doesn't support wildcards, but by default
516
- # will download all artifacts. Sadly this is what we must do.
517
521
path : artifacts
522
+ pattern : firebase-cpp-sdk-*
518
523
519
524
- name : Setup python
520
525
uses : actions/setup-python@v4
@@ -586,7 +591,7 @@ jobs:
586
591
find firebase-cpp-sdk-*-package -type f
587
592
588
593
- name : upload SDK zip
589
- uses : actions/upload-artifact@v3
594
+ uses : actions/upload-artifact@v4
590
595
with :
591
596
name : firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix}}-package
592
597
path : firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix}}-package.tgz
@@ -656,12 +661,12 @@ jobs:
656
661
if : ${{ github.event.inputs.downloadPublicVersion != '' || github.event.inputs.downloadPreviousRun != '' }}
657
662
steps :
658
663
- name : fetch artifact from previous run
659
- uses : dawidd6/action- download-artifact@v2
664
+ uses : actions/ download-artifact@v4
660
665
if : ${{ github.event.inputs.downloadPreviousRun != '' }}
661
666
with :
662
667
name : ' firebase_cpp_sdk.zip'
663
- workflow : ' cpp-packaging.yml '
664
- run_id : ${{ github.event.inputs.downloadPreviousRun }}
668
+ github-token : ${{ github.token }}
669
+ run-id : ${{ github.event.inputs.downloadPreviousRun }}
665
670
666
671
- name : fetch public SDK package from web
667
672
if : ${{ github.event.inputs.downloadPublicVersion != '' && github.event.inputs.downloadPreviousRun == '' }}
@@ -687,13 +692,13 @@ jobs:
687
692
echo "::warning ::$(cat firebase_cpp_sdk_hash.txt)"
688
693
689
694
- name : upload hash
690
- uses : actions/upload-artifact@v3
695
+ uses : actions/upload-artifact@v4
691
696
with :
692
697
name : firebase_cpp_sdk_hash.txt
693
698
path : firebase_cpp_sdk_hash.txt
694
699
695
700
- name : upload SDK zip
696
- uses : actions/upload-artifact@v3
701
+ uses : actions/upload-artifact@v4
697
702
with :
698
703
name : firebase_cpp_sdk.zip
699
704
path : firebase_cpp_sdk.zip
@@ -711,11 +716,10 @@ jobs:
711
716
path : sdk-src
712
717
713
718
- name : download artifact
714
- uses : actions/download-artifact@v3
719
+ uses : actions/download-artifact@v4
715
720
with :
716
- # download-artifact doesn't support wildcards, but by default
717
- # will download all artifacts. Sadly this is what we must do.
718
721
path : artifacts
722
+ pattern : firebase-cpp-sdk-*-package
719
723
720
724
- name : merge SDK packages
721
725
shell : bash
@@ -750,13 +754,13 @@ jobs:
750
754
find firebase_cpp_sdk -type f
751
755
752
756
- name : upload hash
753
- uses : actions/upload-artifact@v3
757
+ uses : actions/upload-artifact@v4
754
758
with :
755
759
name : firebase_cpp_sdk_hash.txt
756
760
path : firebase_cpp_sdk_hash.txt
757
761
758
762
- name : upload SDK zip
759
- uses : actions/upload-artifact@v3
763
+ uses : actions/upload-artifact@v4
760
764
with :
761
765
name : firebase_cpp_sdk.zip
762
766
path : firebase_cpp_sdk.zip
@@ -767,7 +771,7 @@ jobs:
767
771
needs : [merge_packages]
768
772
steps :
769
773
- name : download SDK zip
770
- uses : actions/download-artifact@v3
774
+ uses : actions/download-artifact@v4
771
775
with :
772
776
name : firebase_cpp_sdk.zip
773
777
- name : unzip SDK and remove non-Windows files
@@ -795,12 +799,12 @@ jobs:
795
799
${{ env.hashCommand }} --tag firebase_cpp_sdk_windows.zip > firebase_cpp_sdk_windows_hash.txt
796
800
echo "::warning ::$(cat firebase_cpp_sdk_windows_hash.txt)"
797
801
- name : upload Windows hash
798
- uses : actions/upload-artifact@v3
802
+ uses : actions/upload-artifact@v4
799
803
with :
800
804
name : firebase_cpp_sdk_windows_hash.txt
801
805
path : firebase_cpp_sdk_windows_hash.txt
802
806
- name : upload Windows SDK zip
803
- uses : actions/upload-artifact@v3
807
+ uses : actions/upload-artifact@v4
804
808
with :
805
809
name : firebase_cpp_sdk_windows.zip
806
810
path : firebase_cpp_sdk_windows.zip
0 commit comments