Skip to content

Commit

Permalink
Automatically push to NuGet Gallery too.
Browse files Browse the repository at this point in the history
  • Loading branch information
viral32111 committed Jul 26, 2023
1 parent a6ff900 commit dbce5ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ jobs:
- name: Add GitHub Packages source
run: dotnet nuget add source --name github --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"

- name: Push NuGet package
- name: Push to GitHub Packages
run: dotnet nuget push --source github --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} JsonExtensions/viral32111.JsonExtensions.*.nupkg

- name: Push to NuGet Gallery
run: dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} JsonExtensions/viral32111.JsonExtensions.*.nupkg

release:
name: Release
runs-on: ubuntu-22.04
Expand Down

0 comments on commit dbce5ba

Please sign in to comment.