Skip to content

Commit 47ae168

Browse files
Fix package publishing
NuGet doesn't appear to be installed on the hosted runners anymore so go back to publishing through `dotnet nuget`.
1 parent 674a2be commit 47ae168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
- name: Push NuGet packages to aspnet-contrib MyGet
178178
env:
179179
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
180-
run: nuget push "*.nupkg" -ApiKey "${MYGET_API_KEY}" -SkipDuplicate -Source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
180+
run: dotnet nuget push "*.nupkg" --api-key "${MYGET_API_KEY}" --skip-duplicate --source https://www.myget.org/F/aspnet-contrib/api/v3/index.json
181181

182182
publish-nuget:
183183
needs: [ build, validate-packages ]
@@ -200,4 +200,4 @@ jobs:
200200
- name: Push NuGet packages to NuGet.org
201201
env:
202202
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
203-
run: nuget push "*.nupkg" -ApiKey "${NUGET_API_KEY}" -SkipDuplicate -Source https://api.nuget.org/v3/index.json
203+
run: dotnet nuget push "*.nupkg" --api-key "${NUGET_API_KEY}" --skip-duplicate --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)