Skip to content

Commit ca6de87

Browse files
JonnyOThangithub-actionsPhantomical
authored
Release workflow and versioning
* remove version-template-extension * bump version to 0.9 * reverrt to C#9 * incorporate ksbt_modversion * changelog back to unreleased * bump version to 0.9 * Fix typo in version property * Include version-file input in create-release.yml Add version file input for release workflow * Create an automated release workflow (#149) * Initial release.yml workflow This just mirrors build.yml for the moment. I'll be adjusting this once I can get a look at the intermediate artifacts * Add setup to actually build the release zip * Fix artifact name * Properly use multiline blocks * Fix a typo * Better compression * Upload SystemHeat.version as an artifact * Simplify a few things * Update to use KSPBT create-release workflow * Switch version file generation to happen through KSPBT * Update repository URLs in SystemHeat.version * Remove version properties from csproj Removed versioning properties and import statement. * Update repository URLs in SystemHeat.version * Delete .github/workflows/release.yml * Delete Source/SystemHeat.version.props * Delete Source/SystemHeat.version.props.versiontemplate --------- Co-authored-by: JonnyOThan <jonnyothan@gmail.com> * Change version to 'Unreleased' in CHANGELOG.md Updated changelog to reflect unreleased changes. * bump version to 0.9.0 * Revise CHANGELOG for unreleased updates Updated changelog to reflect unreleased changes and fixes. * bump version to 0.9.0 * set changelog back to unreleased * langversion to 12 --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Sean Lynch <phantom@lynches.ca>
1 parent 7eb085c commit ca6de87

6 files changed

Lines changed: 48 additions & 33 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ on:
1818
jobs:
1919
build:
2020
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@1.1.1
21+
with:
22+
artifacts:
23+
GameData Extras LICENSE* README* CHANGELOG*

.github/workflows/create-release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ jobs:
1212
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/create-release.yml@release-version-property
1313
with:
1414
version-string: ${{ inputs.version-string }}
15+
version-template-extension:
16+
version-file: GameData/SystemHeat/Versioning/SystemHeat.version

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- SystemHeatVessel is now only added to loaded vessels
1111
- Added option to avoid running stock radiator logic if SystemHeatConverters and SystemHeatHarvesters are installed.
1212
This is one of the biggest performance hits for large vessels with lots of radiators.
13-
This is disabled by default; you can opt in by changing the SystemHeat settings.cfg file
13+
This is disabled by default; you can opt in by setting ForceStockRadiatorLogic to false in the SystemHeat settings.cfg file
1414
- Fixed potential fatal NRE for badly configured parts
1515
- Fixed NRE when launching a vessel
1616
- Fixed NRE when opening the reactor UI for fission engines that don't have heat modules
@@ -22,6 +22,7 @@
2222
- Fixed fission engines logic for engines that use ModuleEngines instead of ModuleEnginesFX (e.g. LV-N when waterfall is not installed)
2323
- Fixed fission reactor patches for USI when NearFutureElectrical is also installed. Made the existing patches also match NFE's values when it is not present
2424

25+
2526
## v0.8.2
2627

2728
- Fixed ungated debug loop strings
@@ -427,4 +428,4 @@
427428
## v0.1.0
428429

429430

430-
## - Initial version controlled release
431+
## - Initial version controlled release
Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
11
{
2-
"NAME":"SystemHeat",
3-
"URL":"https://raw.githubusercontent.com/post-kerbin-mining-corporation/SystemHeat/master/GameData/SystemHeat/Versioning/SystemHeat.version",
4-
"DOWNLOAD":"https://github.com/post-kerbin-mining-corporation/SystemHeat",
5-
"VERSION":
6-
{
7-
"MAJOR":0,
8-
"MINOR":8,
9-
"PATCH":2,
10-
"BUILD":0
11-
},
12-
"KSP_VERSION":
13-
{
14-
"MAJOR":1,
15-
"MINOR":12,
16-
"PATCH":5
17-
},
18-
"KSP_VERSION_MIN":{
19-
"MAJOR":1,
20-
"MINOR":11,
21-
"PATCH":0
22-
},
23-
"KSP_VERSION_MAX":{
24-
"MAJOR":1,
25-
"MINOR":12,
26-
"PATCH":99
27-
}
2+
"NAME": "SystemHeat",
3+
"URL": "https://github.com/KSPModStewards/SystemHeat/releases/latest/download/SystemHeat.version",
4+
"DOWNLOAD": "https://github.com/KSPModStewards/SystemHeat/releases",
5+
"KSP_VERSION": "1.12.5",
6+
"KSP_VERSION_MIN": "1.11.0",
7+
"KSP_VERSION_MAX": "1.12.99",
8+
"VERSION": "0.8.2"
289
}

Source/SystemHeat.csproj

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Version>0.8.2</Version>
43
<AssemblyName>SystemHeat</AssemblyName>
54
<RootNamespace>SystemHeat</RootNamespace>
65
<TargetFramework>net481</TargetFramework>
76

8-
<FileVersion>$(Version)</FileVersion>
9-
<AssemblyVersion>0.1.0.0</AssemblyVersion>
10-
<AssemblyInformationalVersion>$(Version)</AssemblyInformationalVersion>
11-
127
<Description>Heat handling system for Kerbal Space Program</Description>
138
<Company>Area Denial Games</Company>
149
<Product>SystemHeat</Product>
@@ -25,10 +20,23 @@
2520
<DefineConstants Condition="'$(Configuration)'=='Profiling'">$(DefineConstants);ENABLE_PROFILER</DefineConstants>
2621
</PropertyGroup>
2722

23+
<PropertyGroup Condition=" '$(KSPBT_ModVersion)' != '' ">
24+
<Version>$(KSPBT_ModVersion)</Version>
25+
</PropertyGroup>
26+
2827
<ItemGroup>
2928
<PackageReference Include="KSPBuildTools" Version="1.1.1" />
3029
</ItemGroup>
3130

31+
<ItemGroup>
32+
<KSPVersionFile Include="SystemHeat.version">
33+
<Destination>$(KSPBT_ModRoot)/Versioning/SystemHeat.version</Destination>
34+
<KSP_Version>1.12.5</KSP_Version>
35+
<KSP_Version_Min>1.11.0</KSP_Version_Min>
36+
<KSP_Version_Max>1.12.99</KSP_Version_Max>
37+
</KSPVersionFile>
38+
</ItemGroup>
39+
3240
<ItemGroup>
3341
<Compile Remove="Modules\ModuleSystemHeatMultiJettison.cs" />
3442
<None Include="Modules\ModuleSystemHeatMultiJettison.cs" />

Source/SystemHeat.version

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"NAME": "SystemHeat",
3+
"URL": "https://github.com/KSPModStewards/SystemHeat/releases/latest/download/SystemHeat.version",
4+
"DOWNLOAD": "https://github.com/KSPModStewards/SystemHeat/releases",
5+
"KSP_VERSION": {
6+
"MAJOR": 1,
7+
"MINOR": 12,
8+
"PATCH": 5
9+
},
10+
"KSP_VERSION_MIN": {
11+
"MAJOR": 1,
12+
"MINOR": 11,
13+
"PATCH": 0
14+
},
15+
"KSP_VERSION_MAX": {
16+
"MAJOR": 1,
17+
"MINOR": 12,
18+
"PATCH": 99
19+
}
20+
}

0 commit comments

Comments
 (0)