File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed
Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,22 @@ jobs:
1111 - uses : actions/checkout@v3
1212 with :
1313 fetch-depth : 0
14-
1514 - name : Setup .NET
1615 uses : actions/setup-dotnet@v3
1716 with :
1817 dotnet-version : |
1918 3.1.x
2019 6.0.x
2120 7.0.x
22-
21+ - name : Restore dependencies
22+ run : dotnet restore
23+ - name : Build and Set Assembly Version
24+ run : ./build.sh --task=Build --configuration=Release
25+ - name : Update Version
26+ run : sed -i "s/<Version><\/Version>/<Version>${{ github.event.release.name }}<\/Version>/" ./Float.HttpServer/Float.HttpServer.csproj
27+ - name : Pack and Upload
28+ run : dotnet pack --configuration Release --no-restore
2329 - name : Deploy to NuGet
2430 env :
2531 FLOAT_NUGET_TOKEN : ${{ secrets.FLOAT_NUGET_TOKEN }}
26- run : ./build.sh --task=Deploy --configuration=Release --nugetUrl=" https://api.nuget.org/v3/index.json" --nugetToken="${FLOAT_NUGET_TOKEN}"
32+ run : dotnet nuget push Float.HttpServer.${{ github.event.release.name }}.nupkg --api-key "${FLOAT_NUGET_TOKEN}" --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 <PropertyGroup >
3- <TargetFrameworks >netstandard2;netstandard2.1; net6.0;net7.0</TargetFrameworks >
3+ <TargetFrameworks >netstandard2;net6.0;net7.0</TargetFrameworks >
44 <AssemblyName >Float.HttpServer</AssemblyName >
55 <AssemblyAuthor >Float</AssemblyAuthor >
66 <SolutionDir Condition =" $(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'" >..\</SolutionDir >
77 <CodeAnalysisRuleSet >$(SolutionDir)\stylecop.ruleset</CodeAnalysisRuleSet >
88 <DocumentationFile >bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile >
99 <PackageId >$(AssemblyName)</PackageId >
1010 <Title >$(AssemblyName)</Title >
11+ <Version ></Version >
1112 <GenerateAssemblyInfo >false</GenerateAssemblyInfo >
1213 <LangVersion >9.0</LangVersion >
1314 </PropertyGroup >
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ Task("GitVersion")
6868 Information ( $ "NuGet version: { gitVersion . AssemblyFileVersion } ") ;
6969 Information ( $ "Informational version: { gitVersion . AssemblyInformationalVersion } ") ;
7070
71- var visible = isReleaseBuild
71+ var visible = isReleaseBuild
7272 ? new string [ ] { }
7373 : new [ ] { testProjectName } ;
7474
@@ -92,7 +92,6 @@ Task("GitVersion")
9292 } ) ;
9393
9494Task( "Build" )
95- . IsDependentOn ( "RestorePackages" )
9695 . IsDependentOn ( "GitVersion" )
9796 . Does ( ( ) =>
9897 {
@@ -111,12 +110,12 @@ Task("Test")
111110 . WithCriteria ( ! isReleaseBuild )
112111 . Does ( ( ) =>
113112 {
114- var testSettings = new DotNetCoreTestSettings
113+ var testSettings = new DotNetCoreTestSettings
115114 {
116115 Loggers = new [ ] { "nunit" } ,
117116 } ;
118117
119- var coverletSettings = new CoverletSettings
118+ var coverletSettings = new CoverletSettings
120119 {
121120 CollectCoverage = true ,
122121 CoverletOutputFormat = CoverletOutputFormat . opencover ,
You can’t perform that action at this time.
0 commit comments