Commit 96f0dc0 1 parent 5fbcc5e commit 96f0dc0 Copy full SHA for 96f0dc0
File tree 4 files changed +60
-108
lines changed
samples/BaGet.Protocol.Samples.Tests
4 files changed +60
-108
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ # Triggers the workflow on push or pull request events but only for the main branch
5
+ push :
6
+ branches : [ main ]
7
+ pull_request :
8
+ branches : [ main ]
9
+
10
+ # Allows you to run this workflow manually from the Actions tab
11
+ workflow_dispatch :
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Setup .NET
20
+ uses : actions/setup-dotnet@v1
21
+ with :
22
+ dotnet-version : 3.1.x
23
+ - name : Restore dependencies
24
+ run : dotnet restore
25
+ - name : Build
26
+ run : dotnet build --no-restore
27
+ - name : Test
28
+ run : dotnet test --no-build --verbosity normal
Original file line number Diff line number Diff line change
1
+ name : Publish to nuget.org
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ packageVersion :
7
+ description : ' Package version'
8
+ required : true
9
+ default : ' 1.0.0-preview1'
10
+
11
+ jobs :
12
+ build :
13
+
14
+ runs-on : ubuntu-latest
15
+
16
+ steps :
17
+ - uses : actions/checkout@v2
18
+ - name : Setup .NET
19
+ uses : actions/setup-dotnet@v1
20
+ with :
21
+ dotnet-version : 3.1.x
22
+ - name : Restore dependencies
23
+ run : dotnet restore
24
+ - name : Build
25
+ run : dotnet build --no-restore
26
+ - name : Test
27
+ run : dotnet test --no-build --verbosity normal
28
+ - name : Pack
29
+ run : dotnet pack --configuration Release -p:PackageVersion=${{ github.event.inputs.packageVersion }}
30
+ - name : Push
31
+ run : dotnet nuget push ./bin/Release/*.nupkg -s https://dev.nugettest.org/v3/index.json -k ${{secrets.NUGET_API_KEY}}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3.0 </TargetFramework >
4
+ <TargetFramework >netcoreapp3.1 </TargetFramework >
5
5
6
6
<IsPackable >false</IsPackable >
7
7
<NoWarn >IDE0007</NoWarn >
You can’t perform that action at this time.
0 commit comments