From 73d79e4a4c403487f1bdc040bb823106a7648ace Mon Sep 17 00:00:00 2001 From: Martin Benjamins Date: Tue, 12 Nov 2024 22:45:44 +0100 Subject: [PATCH] Update nuget.yml --- .github/workflows/nuget.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 621d16d..eac604e 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -28,7 +28,8 @@ jobs: # Install the .NET SDK indicated in the global.json file - name: Setup .NET uses: actions/setup-dotnet@v4 - + with: + dotnet-version: 9.x.x # Create the NuGet package in the folder from the environment variable NuGetDirectory - run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} /p:ContinuousIntegrationBuild=true @@ -47,6 +48,8 @@ jobs: # Install the .NET SDK indicated in the global.json file - name: Setup .NET uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.x.x # Download the NuGet package created in the previous job - uses: actions/download-artifact@v4.1.7 @@ -70,6 +73,8 @@ jobs: - uses: actions/checkout@v3 - name: Setup .NET uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.x.x - name: Run tests run: dotnet test --configuration Release @@ -87,9 +92,10 @@ jobs: name: nuget path: ${{ env.NuGetDirectory }} - # Install the .NET SDK indicated in the global.json file - name: Setup .NET Core uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.x.x # Publish all NuGet packages to NuGet.org # Use --skip-duplicate to prevent errors if a package with the same version already exists.