Skip to content

Commit

Permalink
fix nuget upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sensslen committed Feb 27, 2024
1 parent c432764 commit a8e85c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,9 @@ jobs:
id: publish_nuget
shell: pwsh
run: |
Get-ChildItem -Path ${{ steps.artifacts_path.outputs.path }} -Include *.nupkg | Select-Object -ExpandProperty FullName | foreach { dotnet nuget push "$_" -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET_KEY }} --skip-duplicate }
$files = Get-ChildItem -Path ${{ steps.artifacts_path.outputs.path }}/* -Include *.nupkg -Recurse
foreach ($f in $files){
$fullPath = $F.FullName
echo "sending $fullPath"
dotnet nuget push "$fullPath" -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET_KEY }} --skip-duplicate
}

0 comments on commit a8e85c5

Please sign in to comment.