diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f79596e5..c07c8e4c4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,15 +142,13 @@ jobs: permissions: contents: write steps: - - name: Install NuGet.exe - uses: nuget/setup-nuget@v2 - with: - nuget-version: 'latest' - name: Download packages uses: actions/download-artifact@v4 with: name: Packages path: Artifacts/Packages + - name: Setup .NET SDKs + uses: actions/setup-dotnet@v4 - name: Publish run: | echo "Found the following packages to push:" @@ -161,7 +159,7 @@ jobs: done for entry in Artifacts/Packages/Core/*.nupkg do - nuget push $entry -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate + dotnet nuget push $entry --source https://api.nuget.org/v3/index.json --api-key "${{secrets.NUGET_API_KEY}}" --skip-duplicate done push: @@ -173,15 +171,13 @@ jobs: permissions: contents: write steps: - - name: Install NuGet.exe - uses: nuget/setup-nuget@v2 - with: - nuget-version: 'latest' - name: Download packages uses: actions/download-artifact@v4 with: name: Packages path: Artifacts/Packages + - name: Setup .NET SDKs + uses: actions/setup-dotnet@v4 - name: Publish run: | echo "Found the following packages to push:" @@ -192,7 +188,7 @@ jobs: done for entry in Artifacts/Packages/Main/*.nupkg do - nuget push $entry -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} -SkipDuplicate + dotnet nuget push $entry --source https://api.nuget.org/v3/index.json --api-key "${{secrets.NUGET_API_KEY}}" --skip-duplicate done - name: Create GitHub release continue-on-error: true