File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,19 @@ jobs:
12
12
matrix :
13
13
os : [ macos-latest, ubuntu-latest, windows-latest ]
14
14
runs-on : ${{ matrix.os }}
15
+ name : Run tests and create NuGet package
15
16
steps :
16
17
- uses : actions/checkout@v2
17
18
with :
18
19
fetch-depth : 0
19
20
- run : dotnet restore --verbosity normal
20
21
- run : dotnet build --verbosity normal
21
22
- run : dotnet test --no-build --verbosity normal
23
+ - run : dotnet pack --no-build --verbosity normal
22
24
publish :
23
25
runs-on : macos-latest
24
26
needs : test
25
27
if : github.ref == 'refs/heads/deploy'
28
+ name : Publish NuGet package
26
29
steps :
27
- - run : dotnet pack --no-build --verbosity normal
28
30
- run : dotnet nuget push "**/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "${{ secrets.NUGET_API_KEY }}"
You can’t perform that action at this time.
0 commit comments