From 2ea532618c8e8daffbc28d07cc07ae769e972435 Mon Sep 17 00:00:00 2001 From: "Frank R. Haugen" Date: Thu, 14 Dec 2023 16:28:35 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 587ddc6..c945cea 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,9 +42,9 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore /p:Version=${{ needs.prepare_versions.outputs.PreviewAssemblyVersion }} + run: dotnet --configuration Release build --configuration Release --no-restore /p:Version=${{ needs.prepare_versions.outputs.PreviewAssemblyVersion }} - name: Test - run: dotnet test --no-build + run: dotnet --configuration Release test --no-build build_pack_publish_preview: needs: prepare_versions @@ -59,11 +59,11 @@ jobs: - name: Restore dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore /p:Version=${{ needs.prepare_versions.outputs.PreviewAssemblyVersion }} + run: dotnet build --configuration Release --configuration Release --no-restore /p:Version=${{ needs.prepare_versions.outputs.PreviewAssemblyVersion }} - name: Test - run: dotnet test --no-build + run: dotnet test --configuration Release --no-build - name: Pack - run: dotnet pack --no-build --output nupkgs /p:Version=${{ needs.prepare_versions.outputs.PreviewPackageVersion }} + run: dotnet pack --configuration Release --no-build --output nupkgs /p:Version=${{ needs.prepare_versions.outputs.PreviewPackageVersion }} - name: Publish NuGet run: dotnet nuget push "nupkgs/*.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate @@ -82,9 +82,9 @@ jobs: - name: Build (${{ needs.prepare_versions.outputs.ReleaseVersion }}) run: dotnet build --configuration Release --no-restore /p:Version=${{ needs.prepare_versions.outputs.ReleaseVersion }} - name: Test - run: dotnet test --no-build + run: dotnet test --configuration Release --no-build - name: Pack - run: dotnet pack --no-build --output nupkgs /p:Version=${{ needs.prepare_versions.outputs.ReleaseVersion }} + run: dotnet pack --configuration Release --no-build --output nupkgs /p:Version=${{ needs.prepare_versions.outputs.ReleaseVersion }} - name: Publish NuGet run: dotnet nuget push "nupkgs/*.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate - name: Upload Release Assets