Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybibikov authored Apr 16, 2024
1 parent 67c0fe6 commit 7fb13c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ jobs:

- name: Publish NuGet package
run: |
foreach($file in (Get-ChildItem ${{ env.NuGetDirectory }} -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_PUSH_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
for file in $(find ${NuGetDirectory} -name "*.nupkg")
do
dotnet nuget push "$file" --api-key "${NUGET_PUSH_KEY}" --source https://api.nuget.org/v3/index.json --skip-duplicate
done

0 comments on commit 7fb13c2

Please sign in to comment.