Skip to content

Commit

Permalink
Publish packages on NuGet.org
Browse files Browse the repository at this point in the history
  • Loading branch information
filipnavara committed Aug 24, 2023
1 parent 12e981d commit 3fc9033
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ jobs:
with:
name: melanzana-${{ steps.nbgv.outputs.SemVer2 }}
path: nuget/
- name: Publish NuGet packages to NuGet feed
- name: Publish NuGet packages to GitHub NuGet feed
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
dotnet nuget push "nuget/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
dotnet nuget push "nuget/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
- name: Publish NuGet packages to NuGet.org feed
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: |
dotnet nuget push "nuget/*.nupkg" -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 3fc9033

Please sign in to comment.