Skip to content

Commit

Permalink
Removed Powershell usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafeed3s committed Dec 30, 2023
1 parent 1b52a1f commit 48ea4f8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ on:
types:
- published # Run the workflow when a new GitHub release is published

defaults:
run:
shell: pwsh

jobs:
build:

Expand Down Expand Up @@ -57,6 +53,7 @@ jobs:
- name: Publish NuGet package
run: |
foreach($package in (Get-ChildItem . -Recurse -Include SUTForge.*.nupkg)) {
dotnet nuget push $package.FullName --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}
find . -name "SUTForge*.nupkg" -print0 | while IFS= read -r -d '' package
do
dotnet nuget push "$package" --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
done

0 comments on commit 48ea4f8

Please sign in to comment.