We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99932f9 commit 4f01dafCopy full SHA for 4f01daf
.github/workflows/publish.yml
@@ -43,4 +43,10 @@ jobs:
43
user: ${{ secrets.NUGET_USER }}
44
45
- name: NuGet push
46
- run: dotnet nuget push artifacts/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
+ run: |
47
+ $packages = Get-ChildItem -Path artifacts/*.nupkg
48
+ if ($packages.Count -ne 1) {
49
+ throw "Expected exactly 1 package, found $($packages.Count)"
50
+ }
51
+ dotnet nuget push $packages[0].FullName --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
52
+ shell: pwsh
0 commit comments