Skip to content

Commit

Permalink
Removed powershell from linux script
Browse files Browse the repository at this point in the history
  • Loading branch information
romfir authored Sep 8, 2023
1 parent 3865ec3 commit 0ce72bb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:

- name: Publish NuGet package
run: |
foreach($file in (Get-ChildItem "${{ env.NUGET_OUTPUT_DIRECTORY }}" -Recurse -Include ${{ env.PACKAGE_NAME }}*.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
for packageFile in "${{ env.NUGET_OUTPUT_DIRECTORY }}"/"${{ env.PACKAGE_NAME }}"*.nupkg
do
if [ -f "$packageFile" ]; then
dotnet nuget push "$packageFile" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
fi
done

0 comments on commit 0ce72bb

Please sign in to comment.