File tree Expand file tree Collapse file tree 2 files changed +6
-25
lines changed
Expand file tree Collapse file tree 2 files changed +6
-25
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7- tags :
8- - ' v*.*.*'
97
108jobs :
119 publish :
@@ -15,20 +13,10 @@ jobs:
1513 - name : Checkout code
1614 uses : actions/checkout@v3
1715
18- - name : Setup .NET SDKs
16+ - name : Setup .NET SDK
1917 uses : actions/setup-dotnet@v4
2018 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] 19+ dotnet-version : 8.0.x
3220
3321 - name : Restore dependencies
3422 run : dotnet restore
3725 run : dotnet build --configuration Release --no-restore
3826
3927 - 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
4429
4530 - 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
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
22
33 <PropertyGroup >
4- <TargetFrameworks >net8.0;net10.0</TargetFrameworks >
54 <ImplicitUsings >enable</ImplicitUsings >
65 <Nullable >enable</Nullable >
6+ <TargetFramework >net8.0</TargetFramework >
77 </PropertyGroup >
88
99 <PropertyGroup >
1010 <PackageId >KSFramework</PackageId >
11- <Version Condition = " '$(Version)' == '' " >1.0.0 </Version >
11+ <Version >1.0.20 </Version >
1212 <Authors >Kamran Sadin</Authors >
1313 <Company >Sadin</Company >
1414 <CopyRight >Copyright (c) 2022 SadinCo.</CopyRight >
You can’t perform that action at this time.
0 commit comments