Skip to content

Commit

Permalink
Work around NuGet bug
Browse files Browse the repository at this point in the history
Specifying `-n true` appears to cause problems. See NuGet/Home#11601 (comment)
  • Loading branch information
mscottford committed Sep 8, 2022
1 parent a19e4d0 commit f4c2b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ jobs:

- name: Publish Alpha Package to Github Packages
if: github.event_name == 'push'
run: dotnet nuget push ./Corgibytes.Freshli.Lib/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate -n true -s https://nuget.pkg.github.com/corgibytes/index.json
run: dotnet nuget push ./Corgibytes.Freshli.Lib/bin/Release/*.nupkg -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate -n -s https://nuget.pkg.github.com/corgibytes/index.json

- name: Publish Beta/Production Package to NuGet
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: dotnet nuget push ./Corgibytes.Freshli.Lib/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -n true -s https://api.nuget.org/v3/index.json
run: dotnet nuget push ./Corgibytes.Freshli.Lib/bin/Release/*.nupkg -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate -n -s https://api.nuget.org/v3/index.json

0 comments on commit f4c2b53

Please sign in to comment.