Skip to content

Commit

Permalink
NuGet publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym committed Mar 8, 2021
1 parent a2c2a4b commit c6f50d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
run: dotnet pack src --no-build --output nuget
- name: Add GitHub package source
run: dotnet nuget add source https://nuget.pkg.github.com/pakrym/index.json --name "github" --username NotUsed --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
- name: Publish NuGet packages
- name: Publish NuGet packages to GitHub feed
run: dotnet nuget push nuget/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate --no-symbols true
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
- name: Publish NuGet packages to NuGet
run: dotnet nuget push nuget/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source "NuGet" --skip-duplicate --no-symbols true
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

0 comments on commit c6f50d3

Please sign in to comment.