File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 55 branches : [ master ]
66 pull_request :
77 branches : [ master ]
8+ release :
9+ types : [ created ]
810
911jobs :
1012 build :
@@ -17,16 +19,23 @@ jobs:
1719 uses : actions/setup-dotnet@v1
1820 with :
1921 dotnet-version : 2.1.500
22+
2023 - name : Prepare signing key
24+ if : github.event_name != 'release'
2125 env :
2226 SIGNING_KEY : ${{ secrets.SIGNING_KEY }}
2327 run : echo $SIGNING_KEY | base64 -d -i> ../signingKey.snk
28+
2429 - name : Dotnet build
30+ if : github.event_name != 'release'
2531 run : dotnet build -c Debug
32+
2633 - name : Dotnet test
34+ if : github.event_name != 'release'
2735 run : dotnet test --no-build -c Debug
36+
2837 - name : Publish package
38+ if : github.event_name == 'release'
2939 env :
3040 NUGET_KEY : ${{ secrets.NUGET_KEY }}
3141 run : ./publish.sh
32-
You can’t perform that action at this time.
0 commit comments