Skip to content

Commit

Permalink
update for publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
RaidMax committed Jun 27, 2024
1 parent 82e199d commit afba1e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/shared_library_nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ jobs:

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

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

0 comments on commit afba1e4

Please sign in to comment.