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.