diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index db41681..4a60246 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,7 +50,7 @@ jobs: run: dotnet run --project MSStore.CLI.UnitTests -f net9.0-windows10.0.17763.0 --no-build -c Release --coverage --coverage-output-format cobertura --report-trx --results-directory ./TestResults - name: Publish test results if: ${{ !cancelled() }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: test-results-${{ matrix.os }} path: TestResults/*.trx @@ -59,7 +59,7 @@ jobs: - name: Merge code coverage files run: reportgenerator "-reports:${{ github.workspace }}/**/*.cobertura.xml" "-targetdir:${{ github.workspace }}/report" "-reporttypes:Cobertura" "-filefilters:-*GenerationContext*.g.cs" - name: Publish code coverage results - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: Cobertura-${{ matrix.os }} path: ${{ github.workspace }}/report/Cobertura.xml @@ -69,7 +69,7 @@ jobs: run: dotnet pack MSStore.API --no-build -c Release - name: Upload Artifact - NuGet if: ${{ matrix.os == 'ubuntu-latest' }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: NuGet path: MSStore.API/bin/Release/*.nupkg @@ -135,13 +135,13 @@ jobs: run: ."C:\Program Files (x86)\Windows Kits\10\App Certification Kit\SignTool.exe" sign /fd SHA256 /a /f .\MSStore.CLI.MSIX\MSStore.CLI.MSIX_TemporaryKey.pfx ${{ github.workspace }}/MSStore.CLI.MSIX/AppPackages/${{ matrix.dotnet-arch }}/MSStore.CLI.MSIX_${{ env.GitBuildVersionSimple }}.0_${{ matrix.dotnet-arch }}_Test.msix - name: Upload Artifact - CLI if: ${{ !env.ACT }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: CLI-${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }} path: ${{ github.workspace }}/MSStore.CLI/bin/Release/${{ matrix.dotnet-framework }}/${{ matrix.dotnet-os }}-${{ matrix.dotnet-arch }}/publish/**/* - name: Upload Artifact - MSIX if: ${{ matrix.os == 'windows-latest' && !env.ACT }} - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: CLI-MSIX-${{ matrix.dotnet-arch }} path: ${{ github.workspace }}/MSStore.CLI.MSIX/AppPackages/${{ matrix.dotnet-arch }}/MSStore.CLI.MSIX_${{ env.GitBuildVersionSimple }}.0_${{ matrix.dotnet-arch }}_Test.msix \ No newline at end of file