Skip to content

Commit 0a5084d

Browse files
authored
Merge pull request #36 from TechnologyEnhancedLearning/feat-version-work-on-branch-maybe
Feat version work on branch maybe
2 parents f5844af + 1b3b504 commit 0a5084d

File tree

24 files changed

+933
-152
lines changed

24 files changed

+933
-152
lines changed
Binary file not shown.

.github/workflows/dev.yml

Lines changed: 336 additions & 58 deletions
Large diffs are not rendered by default.

.github/workflows/release.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,27 @@ jobs:
168168

169169
- name: Create docs directory
170170
run: mkdir -p docs
171-
172-
- name: Publish client using client release .csproj logic
173-
run: |
174-
dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
175-
/p:IsLocalDev=$IS_LOCAL_DEV \
176-
/p:BCLVersion=$BCL_VERSION \
177-
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE
171+
172+
# Hardcode the INDEPENDENT_CLIENT_GH_PAGES value
173+
# Blazor client so appsetting in wwwroot and public
174+
- name: Modify appsettings.json with hardcoded value
175+
run: |
176+
jq '.INDEPENDENT_CLIENT_GH_PAGES = "true"' TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json > tmp.json && mv tmp.json TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json
177+
178+
179+
180+
# Print the contents of appsettings.json inside 'TestHostPrerenderWASM.Client' folder
181+
# - name: Display appsettings.json content
182+
# run: cat TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json
183+
184+
- name: Publish client using client release .csproj logic
185+
run: |
186+
dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
187+
/p:BCLVersion=$BCL_VERSION \
188+
/p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
189+
/p:UseBCLProjectReference=$USE_BCL_PROJECT_REFERENCE \
190+
/p:GhPageRelease=true \
191+
/p:LocalPackagePath=$BCL_Source
178192
179193
180194
# No this will be in the release branch that we do a prod wiki host

CHANGELOG.md

Lines changed: 423 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
just so its in git

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
2020
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
2121
<PackageVersion Include="TELBlazorComponentLibrary.GitPageBlazorWasm" Version="$(BCLVersion)" />
22+
<!--<PackageVersion Include="TELBlazorComponentLibrary.GitPageBlazorWasm" Version="8.4.0-feat-version-work-on-branch-maybe.19-250410-1414" />-->
2223
<PackageVersion Include="xunit" Version="2.5.3" />
2324
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.3" />
2425
</ItemGroup>

GitPageBlazorWASM.sln

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
2828
PackageSettings.props.local = PackageSettings.props.local
2929
EndProjectSection
3030
EndProject
31-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CICDPackageLocation", "CICDPackageLocation", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
32-
ProjectSection(SolutionItems) = preProject
33-
gitinclude.txt = gitinclude.txt
34-
EndProjectSection
35-
EndProject
36-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Previous working yml taken out of pipeline", "Previous working yml taken out of pipeline", "{60F62104-7665-411D-90F2-757E979F564D}"
37-
EndProject
3831
Global
3932
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4033
Debug|Any CPU = Debug|Any CPU
@@ -65,10 +58,6 @@ Global
6558
GlobalSection(SolutionProperties) = preSolution
6659
HideSolutionNode = FALSE
6760
EndGlobalSection
68-
GlobalSection(NestedProjects) = preSolution
69-
{02EA681E-C7D8-13C7-8484-4AC65E1B71E8} = {8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}
70-
{60F62104-7665-411D-90F2-757E979F564D} = {8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}
71-
EndGlobalSection
7261
GlobalSection(ExtensibilityGlobals) = postSolution
7362
SolutionGuid = {4D34DAB5-2332-41DD-A133-3A5765237422}
7463
EndGlobalSection
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
namespace Package.BlazorComponentLibrary.BCLVersion { public static class VersionInfo { public static string Version = "3.0.8" ;
1+
namespace Package.BlazorComponentLibrary.BCLVersion { public static class VersionInfo { public static string Version = "10.9.7" ;
22
} }

Package.BlazorComponentLibrary/Components/SimpleCounter.razor

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<h3>Simple Counter</h3>
2-
Feat123
2+
change
3+
<b>version from build process</b>
4+
<span class="version-display">@Package.BlazorComponentLibrary.BCLVersion.VersionInfo.Version</span>
5+
<b>manually types</b>
6+
<span>5.6.9</span>
37
<button class="btn btn-primary" @onclick="IncrementCount">
4-
A Build aaa(@currentCount)
8+
surely not A Build aaa(@currentCount)
59
</button>
610

711
@code {

Package.BlazorComponentLibrary/Package.BlazorComponentLibrary.csproj

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<EnableDefaultEmbeddedResources>true</EnableDefaultEmbeddedResources>
1414
<AddRazorSupportForMvc>true</AddRazorSupportForMvc>
1515

16-
17-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
16+
<GeneratePackageOnBuild Condition="'$(DisablePackageGeneration)' != 'true'">true</GeneratePackageOnBuild>
17+
<!--<GeneratePackageOnBuild>true</GeneratePackageOnBuild>-->
1818
<PackageId>TELBlazorComponentLibrary.GitPageBlazorWasm</PackageId>
1919
<Version>$(BCLVersion)</Version>
2020
<Authors>TEL</Authors>
@@ -28,11 +28,6 @@
2828
<PackageOutputPath>$(NupkgOutputPath)</PackageOutputPath>
2929

3030
</PropertyGroup>
31-
<!--<Target Name="DebugProperties" BeforeTargets="Build">
32-
<Message Importance="high" Text="NupkgOutputPath: $(NupkgOutputPath)" />
33-
<Message Importance="high" Text="PackageOutputPath: $(PackageOutputPath)" />
34-
<Message Importance="high" Text="LocalPackagePath: $(LocalPackagePath)" />
35-
</Target>-->
3631

3732
<ItemGroup>
3833
<SupportedPlatform Include="browser" />
@@ -44,9 +39,15 @@
4439
</ItemGroup>
4540
<ItemGroup>
4641
<Content Remove="packages.lock.json" />
42+
<Content Remove="wwwroot\background.png" />
4743
</ItemGroup>
48-
49-
<Target Name="WriteBclVersionToFile" AfterTargets="Build">
44+
<!--qqqq building in the solution wasnt an issue before-->
45+
<ItemGroup>
46+
<Compile Remove="..\CICDPackageLocation\**\*.cs" />
47+
<Content Remove="..\CICDPackageLocation\**\*" />
48+
<None Remove="..\CICDPackageLocation\**\*" />
49+
</ItemGroup>
50+
<Target Name="WriteBclVersionToFile" BeforeTargets="PrepareForBuild">
5051
<WriteLinesToFile File="wwwroot/bclversion.txt" Lines="$(BCLVersion)" Overwrite="true" Encoding="UTF-8" />
5152
<WriteLinesToFile File="BCLVersion/VersionInfo.cs" Lines="namespace Package.BlazorComponentLibrary.BCLVersion { public static class VersionInfo { public static string Version = &quot;$(BCLVersion)&quot; %3B; } }" Overwrite="true" Encoding="UTF-8" />
5253
</Target>

0 commit comments

Comments
 (0)