File tree 3 files changed +43
-22
lines changed 3 files changed +43
-22
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : .NET Core
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+
8
+ runs-on : windows-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v1
12
+ - name : Setup .NET
13
+ uses : actions/setup-dotnet@v1
14
+ with :
15
+ dotnet-version : |
16
+ 3.1.x
17
+ 6.0.x
18
+ 8.0.x
19
+
20
+ - name : Build
21
+ run : dotnet build --configuration Release
22
+
23
+ - name : Test
24
+ run : dotnet test --configuration Release
25
+
26
+ - name : Pack
27
+ run : dotnet pack --configuration Release --no-build
Original file line number Diff line number Diff line change @@ -12,26 +12,36 @@ jobs:
12
12
13
13
steps :
14
14
- uses : actions/checkout@v1
15
-
15
+
16
+ - name : Setup .NET
17
+ uses : actions/setup-dotnet@v1
18
+ with :
19
+ dotnet-version : |
20
+ 3.1.x
21
+ 6.0.x
22
+ 8.0.x
23
+
16
24
- name : Install dotnet tool
17
25
run : dotnet tool install -g dotnetCampus.TagToVersion
18
26
19
- - name : Set tag to version
27
+ - name : Set tag to version
20
28
run : dotnet TagToVersion -t ${{ github.ref }}
21
29
22
30
- name : Build with dotnet
23
- run : dotnet build --configuration Release
31
+ run : |
32
+ dotnet build --configuration Release
33
+ dotnet pack --configuration Release --no-build
24
34
25
35
- name : Install Nuget
26
36
uses : nuget/setup-nuget@v1
27
37
with :
28
- nuget-version : ' 5 .x'
38
+ nuget-version : ' 6 .x'
29
39
30
40
- name : Add private GitHub registry to NuGet
31
41
run : |
32
42
nuget sources add -name github -Source https://nuget.pkg.github.com/dotnet-campus/index.json -Username dotnet-campus -Password ${{ secrets.GITHUB_TOKEN }}
33
43
34
44
- name : Push generated package to GitHub registry
35
45
run : |
36
- nuget push .\bin\Release \*.nupkg -Source github -SkipDuplicate
37
- nuget push .\bin\Release \*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }}
46
+ nuget push .\artifacts\package\release \*.nupkg -Source github -SkipDuplicate
47
+ nuget push .\artifacts\package\release \*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }}
You can’t perform that action at this time.
0 commit comments