From 375d3c1955cd8f9550a2efd3a3797a0d75f088a4 Mon Sep 17 00:00:00 2001 From: David De Smet <2607383+daviddesmet@users.noreply.github.com> Date: Tue, 10 May 2022 18:52:06 -0500 Subject: [PATCH] Fix NuGet path for Artifacts action v2 --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b866ccc..2b1d7fd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -103,7 +103,7 @@ jobs: with: name: 'windows-latest' - name: 'NuGet Push' - run: dotnet nuget push .\windows-latest\*.nupkg --source https://nuget.pkg.github.com/daviddesmet/index.json --skip-duplicate --api-key ${{secrets.GITHUB_TOKEN}} + run: dotnet nuget push *.nupkg --source https://nuget.pkg.github.com/daviddesmet/index.json --skip-duplicate --api-key ${{secrets.GITHUB_TOKEN}} push-to-nuget: name: 'Push NuGet Packages' @@ -120,7 +120,7 @@ jobs: name: 'windows-latest' - name: 'NuGet Push' run: | - Get-ChildItem .\windows-latest -Filter *.nupkg | + Get-ChildItem . -Filter *.nupkg | Where-Object { !$_.Name.Contains('preview') } | ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} } shell: pwsh