From d8d64dc7cc8294122483f411333174a7639450ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chalet?= Date: Mon, 5 Jun 2023 16:24:57 +0200 Subject: [PATCH] Avoid installing .NET in the push-packages-myget/push-packages-nuget build jobs --- .github/workflows/build.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 24da833d..311824b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,11 +47,6 @@ jobs: 6.0.408 7.0.302 - - name: Setup NuGet - uses: nuget/setup-nuget@v1 - with: - nuget-version: '5.11.0' - # Arcade only allows the revision to contain up to two characters, and GitHub Actions does not roll-over # build numbers every day like Azure DevOps does. To balance these two requirements, set the official # build ID to be the same format as the built-in default from Arcade, except with the revision number @@ -138,8 +133,10 @@ jobs: with: name: packages-windows - - name: Setup .NET - uses: actions/setup-dotnet@v3 + - name: Setup NuGet + uses: nuget/setup-nuget@v1 + with: + nuget-version: '5.11.0' - name: Push packages to MyGet.org run: nuget push "*.nupkg" -ApiKey ${{ secrets.MYGET_API_KEY }} -SkipDuplicate -Source https://www.myget.org/F/openiddict/api/v3/index.json @@ -154,8 +151,10 @@ jobs: with: name: packages-windows - - name: Setup .NET - uses: actions/setup-dotnet@v3 + - name: Setup NuGet + uses: nuget/setup-nuget@v1 + with: + nuget-version: '5.11.0' - name: Push packages to NuGet.org run: nuget push "*.nupkg" -ApiKey ${{ secrets.NUGET_API_KEY }} -SkipDuplicate -Source https://api.nuget.org/v3/index.json