File tree Expand file tree Collapse file tree 1 file changed +29
-20
lines changed Expand file tree Collapse file tree 1 file changed +29
-20
lines changed Original file line number Diff line number Diff line change 3838 run : dotnet build --no-restore
3939
4040 test :
41-
41+
42+ needs : build
43+
4244 strategy :
4345 matrix :
4446 os : [ubuntu-latest, windows-latest]
@@ -51,31 +53,38 @@ jobs:
5153 runs-on : ${{ matrix.os }}
5254
5355 steps :
54- - uses : actions/checkout@v3
55- - name : Setup dotNET
56- uses : actions/setup-dotnet@v3
57- with :
58- dotnet-version : ${{ matrix.dotnet-version }}
59- - name : Restore dependencies
60- run : dotnet restore
61- - name : Build
62- run : dotnet build --no-restore
56+ - name : Test
57+ run : dotnet test --no-build --verbosity normal
58+
59+ deploy-doc :
6360
64- # deploy-doc:
61+ needs : [build, test]
6562
66- # runs-on: ubuntu-latest
63+ runs-on : ubuntu-latest
6764
68- # steps:
69- # - name: Deploy documentation
70- # run: echo "Deploy documentation"
65+ steps :
66+ - name : Deploy documentation
67+ run : echo "Deploy documentation"
68+
69+ publish-nuget :
7170
72- # deploy-nuget:
71+ needs : [build, test]
72+
73+ defaults :
74+ run :
75+ working-directory : ./src
7376
74- # runs-on: ubuntu-latest
77+ runs-on : ubuntu-latest
7578
76- # steps:
77- # - name: Deploy NuGet package
78- # run: echo "Deploy NuGet package"
79+ steps :
80+ - name : Publish the package to nuget.org
81+ run : |
82+ ls -la
83+ cd jjm.one.Serilog.Extensions.Logging.Helpers
84+ ls -la
85+ # run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
86+ # env:
87+ # NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
7988
8089
8190
You can’t perform that action at this time.
0 commit comments