Skip to content

Commit

Permalink
Fix .NET Nuget workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
monoman committed Nov 21, 2019
1 parent 86506b7 commit 3bf07cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pushnuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Install additional dotnet 3.0
run: sudo apt-get install dotnet-sdk-3.0
- name: Create NuGet.Config.template
run: echo '<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><add key="GitHub" value="https://nuget.pkg.github.com/interlockledger/index.json" /></packageSources><packageSourceCredentials><GitHub><add key="Username" value="interlockledger" /><add key="ClearTextPassword" value="GH_TOKEN" /></GitHub></packageSourceCredentials></configuration>' > NuGet.Config.template
run: echo '<?xml version="1.0" encoding="utf-8"?><configuration><packageSources><add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /><add key="GitHub" value="https://nuget.pkg.github.com/interlockledger/index.json" /></packageSources><packageSourceCredentials><GitHub><add key="Username" value="interlockledger" /><add key="ClearTextPassword" value="GH_TOKEN" /></GitHub></packageSourceCredentials></configuration>' > NuGet.Config.template
- name: Setup Nuget.Config
run: sed -e "s/GH_TOKEN/${{ secrets.RegistryToken }}/" NuGet.Config.template > NuGet.Config
- name: Test with dotnet
run: dotnet test --configuration Release -v:m
run: dotnet test --configuration Release -v:m | grep -v 'NAME_UNKNOWN:Package'
- name: Pack nuget
run: dotnet pack -o `pwd`/.nugets --configuration Release --no-build -v:m
- name: Push nuget
Expand Down

0 comments on commit 3bf07cb

Please sign in to comment.