File tree Expand file tree Collapse file tree
GrasshopperAsyncComponent Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version : 2.1
22
33orbs :
4- win : circleci/windows@2.2 .0
4+ win : circleci/windows@5.0 .0
55
66jobs :
7- publish_nuget :
7+ build :
88 executor : win/default
99 steps :
1010 - checkout
1111 - run :
12- name : Set version env var
12+ name : Restore packages
13+ command : dotnet restore GrasshopperAsyncComponent.sln
14+ - run :
15+ name : Build solution
1316 command : |
14- $semver = if([string]::IsNullOrEmpty($env:CIRCLE_TAG)) { "0.0.999" } else { $env:CIRCLE_TAG }
15- $ver = if($semver.Contains('-')) {$semver.Split("-")[0] } else { $semver }
16- $version = "$($ver).$($env:WORKFLOW_NUM)"
17+ $TAG = if([string]::IsNullOrEmpty($env:CIRCLE_TAG)) { "0.999.$($env:WORKFLOW_NUM)-ci" } else { $env:CIRCLE_TAG }
18+ dotnet build GrasshopperAsyncComponent.sln --no-restore -c Release /p:Version=$TAG /p:AssemblyVersionNumber=$TAG /p:AssemblyInformationalVersion=$TAG
1719 environment :
1820 WORKFLOW_NUM : << pipeline.number >>
21+ publish_nuget :
22+ executor : win/default
23+ steps :
24+ - checkout
1925 - run :
2026 name : Restore packages
21- command : nuget restore GrasshopperAsyncComponent.sln
27+ command : dotnet restore GrasshopperAsyncComponent.sln
2228 - run :
2329 name : Build solution
24- command : msbuild GrasshopperAsyncComponent.sln /p:Configuration=Release /p:AssemblyVersionNumber=$version /p:AssemblyInformationalVersion=$semver /p:Version=$semver
25- - run :
26- name : Pack NuGet
27- command : cd GrasshopperAsyncComponent; nuget pack GrasshopperAsyncComponent.csproj -Prop Configuration=Release -Symbols -SymbolPackageFormat snupkg
30+ command : |
31+ $TAG = if([string]::IsNullOrEmpty($env:CIRCLE_TAG)) { "0.999.$($env:WORKFLOW_NUM)-ci" } else { $env:CIRCLE_TAG }
32+ dotnet build GrasshopperAsyncComponent.sln --no-restore -c Release /p:Version=$TAG /p:AssemblyVersionNumber=$TAG /p:AssemblyInformationalVersion=$TAG
33+ environment :
34+ WORKFLOW_NUM : << pipeline.number >>
2835 - run :
2936 name : Push NuGet
30- command : cd GrasshopperAsyncComponent; nuget push *.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $env:NUGET_APIKEY -SkipDuplicate
37+ command : nuget push **/ *.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $env:NUGET_APIKEY -SkipDuplicate
3138
3239workflows :
40+ build :
41+ jobs :
42+ - build :
43+ context : github-dev-bot
3344 publish :
3445 jobs :
3546 - publish_nuget :
3647 filters :
3748 tags :
38- only : /^v .*/
49+ only : /.*/
3950 branches :
4051 ignore : /.*/
4152 context : nuget
Original file line number Diff line number Diff line change 2121 <PackageLicenseExpression >Apache-2.0</PackageLicenseExpression >
2222 <PackageProjectUrl >https://github.com/specklesystems/GrasshopperAsyncComponent</PackageProjectUrl >
2323 <PackageTags >grasshopper rhino mcneel gh_component</PackageTags >
24+
25+ <IncludeSymbols >true</IncludeSymbols >
26+ <SymbolPackageFormat >snupkg</SymbolPackageFormat >
27+ <GeneratePackageOnBuild >true</GeneratePackageOnBuild >
2428 </PropertyGroup >
2529
2630 <ItemGroup >
You can’t perform that action at this time.
0 commit comments