@@ -178,7 +178,7 @@ jobs:
178178 tar -czhf ../packaging-tools.tgz .
179179
180180 - name : upload artifacts
181- uses : actions/upload-artifact@v3
181+ uses : actions/upload-artifact@v4
182182 with :
183183 name : packaging-tools-${{ matrix.tools_platform }}
184184 path : packaging-tools.tgz
@@ -236,7 +236,7 @@ jobs:
236236 find firebase-cpp-sdk-*-package -type f
237237
238238 - name : upload artifacts
239- uses : actions/upload-artifact@v3
239+ uses : actions/upload-artifact@v4
240240 with :
241241 name : firebase-cpp-sdk-ios-tvos-package
242242 path : firebase-cpp-sdk-ios-tvos-package.tgz
@@ -296,7 +296,7 @@ jobs:
296296 find firebase-cpp-sdk-*-package -type f
297297
298298 - name : upload artifacts
299- uses : actions/upload-artifact@v3
299+ uses : actions/upload-artifact@v4
300300 with :
301301 name : firebase-cpp-sdk-android-package
302302 path : firebase-cpp-sdk-android-package.tgz
@@ -450,7 +450,7 @@ jobs:
450450 continue-on-error : true
451451
452452 - name : upload artifacts
453- uses : actions/upload-artifact@v3
453+ uses : actions/upload-artifact@v4
454454 with :
455455 name : firebase-cpp-sdk-${{ env.SDK_NAME }}-build
456456 path : firebase-cpp-sdk-${{ env.SDK_NAME }}-build.tgz
@@ -509,12 +509,17 @@ jobs:
509509 with :
510510 path : sdk-src
511511
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
514520 with :
515- # download-artifact doesn't support wildcards, but by default
516- # will download all artifacts. Sadly this is what we must do.
517521 path : artifacts
522+ pattern : firebase-cpp-sdk-*
518523
519524 - name : Setup python
520525 uses : actions/setup-python@v4
@@ -586,7 +591,7 @@ jobs:
586591 find firebase-cpp-sdk-*-package -type f
587592
588593 - name : upload SDK zip
589- uses : actions/upload-artifact@v3
594+ uses : actions/upload-artifact@v4
590595 with :
591596 name : firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix}}-package
592597 path : firebase-cpp-sdk-${{ matrix.sdk_platform }}${{ matrix.suffix}}-package.tgz
@@ -656,12 +661,12 @@ jobs:
656661 if : ${{ github.event.inputs.downloadPublicVersion != '' || github.event.inputs.downloadPreviousRun != '' }}
657662 steps :
658663 - name : fetch artifact from previous run
659- uses : dawidd6/action- download-artifact@v2
664+ uses : actions/ download-artifact@v4
660665 if : ${{ github.event.inputs.downloadPreviousRun != '' }}
661666 with :
662667 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 }}
665670
666671 - name : fetch public SDK package from web
667672 if : ${{ github.event.inputs.downloadPublicVersion != '' && github.event.inputs.downloadPreviousRun == '' }}
@@ -687,13 +692,13 @@ jobs:
687692 echo "::warning ::$(cat firebase_cpp_sdk_hash.txt)"
688693
689694 - name : upload hash
690- uses : actions/upload-artifact@v3
695+ uses : actions/upload-artifact@v4
691696 with :
692697 name : firebase_cpp_sdk_hash.txt
693698 path : firebase_cpp_sdk_hash.txt
694699
695700 - name : upload SDK zip
696- uses : actions/upload-artifact@v3
701+ uses : actions/upload-artifact@v4
697702 with :
698703 name : firebase_cpp_sdk.zip
699704 path : firebase_cpp_sdk.zip
@@ -711,11 +716,10 @@ jobs:
711716 path : sdk-src
712717
713718 - name : download artifact
714- uses : actions/download-artifact@v3
719+ uses : actions/download-artifact@v4
715720 with :
716- # download-artifact doesn't support wildcards, but by default
717- # will download all artifacts. Sadly this is what we must do.
718721 path : artifacts
722+ pattern : firebase-cpp-sdk-*-package
719723
720724 - name : merge SDK packages
721725 shell : bash
@@ -750,13 +754,13 @@ jobs:
750754 find firebase_cpp_sdk -type f
751755
752756 - name : upload hash
753- uses : actions/upload-artifact@v3
757+ uses : actions/upload-artifact@v4
754758 with :
755759 name : firebase_cpp_sdk_hash.txt
756760 path : firebase_cpp_sdk_hash.txt
757761
758762 - name : upload SDK zip
759- uses : actions/upload-artifact@v3
763+ uses : actions/upload-artifact@v4
760764 with :
761765 name : firebase_cpp_sdk.zip
762766 path : firebase_cpp_sdk.zip
@@ -767,7 +771,7 @@ jobs:
767771 needs : [merge_packages]
768772 steps :
769773 - name : download SDK zip
770- uses : actions/download-artifact@v3
774+ uses : actions/download-artifact@v4
771775 with :
772776 name : firebase_cpp_sdk.zip
773777 - name : unzip SDK and remove non-Windows files
@@ -795,12 +799,12 @@ jobs:
795799 ${{ env.hashCommand }} --tag firebase_cpp_sdk_windows.zip > firebase_cpp_sdk_windows_hash.txt
796800 echo "::warning ::$(cat firebase_cpp_sdk_windows_hash.txt)"
797801 - name : upload Windows hash
798- uses : actions/upload-artifact@v3
802+ uses : actions/upload-artifact@v4
799803 with :
800804 name : firebase_cpp_sdk_windows_hash.txt
801805 path : firebase_cpp_sdk_windows_hash.txt
802806 - name : upload Windows SDK zip
803- uses : actions/upload-artifact@v3
807+ uses : actions/upload-artifact@v4
804808 with :
805809 name : firebase_cpp_sdk_windows.zip
806810 path : firebase_cpp_sdk_windows.zip
0 commit comments