File tree Expand file tree Collapse file tree 3 files changed +79
-14
lines changed Expand file tree Collapse file tree 3 files changed +79
-14
lines changed Original file line number Diff line number Diff line change
1
+ name : Branches Java CI
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : ${{ matrix.os }}
9
+
10
+ strategy :
11
+ matrix :
12
+ os : [ ubuntu-latest, windows-latest ]
13
+ fail-fast : false
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Setup .NET Core
18
+ uses : actions/setup-dotnet@v1
19
+ with :
20
+ dotnet-version : 2.1.809
21
+ - name : Install dependencies
22
+ run : dotnet restore
23
+ - name : Build
24
+ run : dotnet build --configuration Release --no-restore
25
+ - name : Test
26
+ run : dotnet test --no-restore --verbosity normal
Original file line number Diff line number Diff line change
1
+ name : Release Java CI
2
+
3
+ on :
4
+ # Trigger the workflow on push
5
+ push :
6
+ # Sequence of patterns matched against refs/tags
7
+ tags :
8
+ - ' *' # Push events to matching *, i.e. 1.0, 20.15.10
9
+
10
+ jobs :
11
+ publish :
12
+
13
+ runs-on : ${{ matrix.os }}
14
+
15
+ strategy :
16
+ matrix :
17
+ os : [ windows-latest ]
18
+ fail-fast : false
19
+
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Setup .NET Core
23
+ uses : actions/setup-dotnet@v1
24
+ with :
25
+ dotnet-version : 2.1.809
26
+
27
+ - name : Setup Nuget
28
+ uses : nuget/setup-nuget@v1
29
+ with :
30
+ nuget-api-key : ${{ secrets.nugetApiKey }}
31
+ nuget-version : ' 5.x'
32
+ - name : Install dependencies
33
+ run : dotnet restore
34
+ - name : Build
35
+ run : dotnet build --configuration Release --no-restore
36
+ - name : Test
37
+ run : dotnet test --no-restore --verbosity normal
38
+ - name : Package
39
+ run : dotnet pack -c Release -p:Version=${releaseVersion}
40
+ env :
41
+ releaseVersion : ${{ github.ref }}
42
+ - name : Restore Cert File
43
+ run : echo ${codeSigningCer} > code_signing.cer
44
+ env :
45
+ codeSigningCer : ${{ CODE_SIGN_CER }}
46
+ - name : Sign Package
47
+ run : nuget sign rsocket-net/RSocket.Core/bin/Release/RSocket.Core.*.nupkg -CertificatePath code_signing.cer
48
+ - name : Remove Cert File
49
+ run : rm -rf code_signing.cer
50
+ - name : publish
51
+ run : dotnet nuget push rsocket-net/RSocket.Core/bin/Release/RSocket.Core.*.nupkg --api-key ${nugetApiKey} --source https://api.nuget.org/v3/index.json
52
+ env :
53
+ nugetApiKey : ${{ secrets.nugetApiKey }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments