Skip to content

Commit e6fd3e9

Browse files
committed
Simplify Build Action
1 parent 00acafb commit e6fd3e9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ jobs:
1212
- name: Setup .NET Core 3.1
1313
uses: actions/setup-dotnet@v1
1414
with:
15-
dotnet-version: 3.1.403
16-
- name: Create NuGet.Config.template
17-
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/managed-commons/index.json" /></packageSources><packageSourceCredentials><GitHub><add key="Username" value="managed-commons" /><add key="ClearTextPassword" value="GH_TOKEN" /></GitHub></packageSourceCredentials></configuration>' > NuGet.Config.template
18-
- name: Setup Nuget.Config
19-
run: sed -e "s/GH_TOKEN/${{ secrets.RegistryToken }}/" NuGet.Config.template > NuGet.Config
20-
- name: Test with dotnet
15+
dotnet-version: 3.1.403
16+
- name: Build and Test with dotnet
2117
run: NONET461=true dotnet test --configuration Release -v:m | grep -v 'NAME_UNKNOWN:Package'
22-
- name: Push nuget
23-
run: echo 'dotnet nuget push `pwd`/.nugets/*.nupkg -s GitHub'

0 commit comments

Comments
 (0)