From 38294989d3c2025d1b8a5a357f7f459cf9bb58d9 Mon Sep 17 00:00:00 2001 From: Rami Date: Sun, 15 Oct 2023 18:56:32 -0700 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 401eed1..a2d8c68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,10 +44,10 @@ jobs: echo SEM_VERSION=${{ env.SEM_VERSION }} - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4.1.0 - name: Setup .NET Core 2.1 - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v3.2.0 with: dotnet-version: 2.1 @@ -63,7 +63,7 @@ jobs: copy ".\src\AzurePipelines.TestLogger\bin\${{ matrix.Configuration }}\netstandard1.5\*.dll" .\src\AzurePipelines.TestLogger\contentFiles\any\any - name: Pack - run: dotnet pack .\src\AzurePipelines.TestLogger\AzurePipelines.TestLogger.csproj --configuration ${{ matrix.Configuration }} -p:NuspecProperties="Version=${{ env.SEM_VERSION }}" --no-restore --no-build --output:.\build -p:NuspecFile=AzurePipelines.TestLogger.nuspec + run: dotnet pack .\src\AzurePipelines.TestLogger\AzurePipelines.TestLogger.csproj --configuration ${{ matrix.Configuration }} -p:NuspecProperties="Version=${{ env.SEM_VERSION }}" --no-restore --no-build --output:.\build -p:NuspecFile=..\..\..\..\src\AzurePipelines.TestLogger\AzurePipelines.TestLogger.nuspec - name: Test run: dotnet test --no-build --no-restore --verbosity normal --configuration ${{ matrix.Configuration }} @@ -78,7 +78,7 @@ jobs: tar -cf AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip .\AzurePipelines.TestLogger.${{ env.SEM_VERSION }} - name: Upload Build Artifact - uses: actions/upload-artifact@v2.3.1 + uses: actions/upload-artifact@v3.1.3 with: name: AzurePipelines.TestLogger ${{ env.SEM_VERSION }} ${{ matrix.Configuration }} path: AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.zip @@ -97,7 +97,7 @@ jobs: .\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg - name: Upload NuGet Package - uses: actions/upload-artifact@v2.3.1 + uses: actions/upload-artifact@v3.1.3 with: name: AzurePipelines.TestLogger ${{ env.SEM_VERSION }} ${{ matrix.Configuration }}.nupkg path: .\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg @@ -105,4 +105,4 @@ jobs: - name: Publish NuGet Package if: ${{ matrix.Configuration == 'Release' && github.event_name != 'pull_request' }} - run: dotnet nuget push .\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push .\src\AzurePipelines.TestLogger\build\AzurePipelines.TestLogger.${{ env.SEM_VERSION }}.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json