Skip to content

Commit

Permalink
Add gh registry workflow - publish-nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MadL1me authored May 19, 2024
1 parent 702553d commit 916eed5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ jobs:
- name: Publish to NuGet
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push "./nupkg/*.nupkg" --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
run: dotnet nuget push "./nupkg/*.nupkg" --api-key $NUGET_API_KEY --source "github"

- name: Publish to Github Nuget Registry
env:
NUGET_GH_API_KEY: ${{ secrets.NUGET_GH_API_KEY }}
run: dotnet nuget push "./nupkg/*.nupkg" --api-key $NUGET_GH_API_KEY --source https://nuget.pkg.github.com/Aspnext/index.json

0 comments on commit 916eed5

Please # to comment.