File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- tags :
8
- - ' v*.*.*'
9
7
10
8
jobs :
11
9
publish :
@@ -15,36 +13,19 @@ jobs:
15
13
- name : Checkout code
16
14
uses : actions/checkout@v3
17
15
18
- - name : Setup .NET SDKs
16
+ - name : Setup .NET SDK
19
17
uses : actions/setup-dotnet@v4
20
18
with :
21
- dotnet-version : |
22
- 8.0.x
23
- 10.0.100-preview.4.25258.110
24
-
25
- - name : Install GitVersion
26
- uses :
gittools/actions/gitversion/[email protected]
27
- with :
28
- versionSpec : ' 5.12.0'
29
-
30
- - name : Use GitVersion
31
- uses :
gittools/actions/gitversion/[email protected]
32
-
19
+ dotnet-version : 8.0.x
20
+
33
21
- name : Restore dependencies
34
22
run : dotnet restore
35
23
36
24
- name : Build
37
25
run : dotnet build --configuration Release --no-restore
38
26
39
27
- name : Pack NuGet
40
- run : |
41
- dotnet pack --configuration Release \
42
- -p:PackageVersion=${{ steps.gitversion.outputs.NuGetVersionV2 }} \
43
- --no-build -o out
28
+ run : dotnet pack --configuration Release --no-build -o out
44
29
45
30
- name : Push to NuGet
46
- if : success()
47
- run : |
48
- dotnet nuget push out/*.nupkg \
49
- --api-key ${{ secrets.NUGET_API_KEY }} \
50
- --source https://api.nuget.org/v3/index.json
31
+ run : dotnet nuget push out/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments