From e242a89af1a93a179c748ddbf316d62944b3498f Mon Sep 17 00:00:00 2001 From: Laurents Meyer Date: Mon, 9 Dec 2024 09:03:39 +0100 Subject: [PATCH] Use solely `dotnet nuget` instead of `nuget`, because it is not available on newer GitHub VM images. --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ff425f6..8a04febc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -393,16 +393,16 @@ jobs: shell: pwsh run: | # https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops#publish-packages-from-external-sources - dotnet new nugetconfig --output './azdo-nuget' --force + dotnet new nugetconfig --output './.nuget' --force try { - dotnet nuget add source 'https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-debug/nuget/v3/index.json' --name 'azdo-pomelo-efcore-debug' --username '${{ vars.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_USERNAME }}' --password '${{ secrets.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_PASSWORD }}' --store-password-in-clear-text --configfile './azdo-nuget/nuget.config' + dotnet nuget add source 'https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-debug/nuget/v3/index.json' --name 'azdo-pomelo-efcore-debug' --username '${{ vars.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_USERNAME }}' --password '${{ secrets.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_PASSWORD }}' --store-password-in-clear-text --configfile './.nuget/nuget.config' dotnet nuget push './Debug/withPdbs/**/*.nupkg' --api-key 'foo' --source 'azdo-pomelo-efcore-debug' --skip-duplicate } finally { - Remove-Item ./azdo-nuget -Recurse -Force + Remove-Item './.nuget' -Recurse -Force } - name: "NuGet Push - AZDO Feed - Release" if: ${{ env.pushToAzureArtifacts == 'true' }} @@ -410,16 +410,16 @@ jobs: shell: pwsh run: | # https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops#publish-packages-from-external-sources - dotnet new nugetconfig --output './azdo-nuget' --force + dotnet new nugetconfig --output './.nuget' --force try { - dotnet nuget add source 'https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-public/nuget/v3/index.json' --name 'azdo-pomelo-efcore-public' --username '${{ vars.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_USERNAME }}' --password '${{ secrets.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_PASSWORD }}' --store-password-in-clear-text --configfile './azdo-nuget/nuget.config' + dotnet nuget add source 'https://pkgs.dev.azure.com/pomelo-efcore/Pomelo.EntityFrameworkCore.MySql/_packaging/pomelo-efcore-public/nuget/v3/index.json' --name 'azdo-pomelo-efcore-public' --username '${{ vars.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_USERNAME }}' --password '${{ secrets.AZUREDEVOPS_POMELO_ALLPACKAGES_PUSHNEW_PASSWORD }}' --store-password-in-clear-text --configfile './.nuget/nuget.config' dotnet nuget push './Release/withPdbs/**/*.nupkg' --api-key 'foo' --source 'azdo-pomelo-efcore-public' --skip-duplicate } finally { - Remove-Item ./azdo-nuget -Recurse -Force + Remove-Item './.nuget' -Recurse -Force } - name: "NuGet Push - myget.org - Debug" if: ${{ env.pushToMygetOrg == 'true' }}