Skip to content

Commit 6032063

Browse files
committed
feat(rel yml): yml
1 parent 66d001a commit 6032063

File tree

2 files changed

+29
-40
lines changed

2 files changed

+29
-40
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,24 +171,24 @@ jobs:
171171

172172
# Hardcode the INDEPENDENT_CLIENT_GH_PAGES value
173173
# 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
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
177177
178178
179179
180180
# Print the contents of appsettings.json inside 'TestHostPrerenderWASM.Client' folder
181181
# - name: Display appsettings.json content
182182
# run: cat TestHostPrerenderWASM/TestHostPrerenderWASM.Client/wwwroot/appsettings.json
183183

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
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
192192
193193
194194
# No this will be in the release branch that we do a prod wiki host

tree_structure.md

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,52 +12,41 @@ tr td:nth-child(2) {
1212
# Project Structure
1313
| Description | File Structure |
1414
|----------------|-------------|
15-
| | ┣ GitPageBlazorWASM |
16-
| The github page is aimed at this and gets the version from gh-page branch. .Client publishes a standalone wasm site here |     ┣ docs |
17-
| |             ┣ _content |
18-
| |                     ┣ Package.BlazorComponentLibrary |
19-
| |                     ┗ SharedPages |
20-
| |                             ┗ css |
21-
| |             ┣ _framework |
22-
| Because its a spa we need to redirect 404 back to our index page parse them to take users to pages on refresh or if they go there directly |             ┣ 404.html |
23-
| |             ┗ index.html |
24-
| the pure webassembly project which was initially progressive publishes here |     ┣ docsReferenceNow |
25-
| |             ┣ _content |
26-
| |                     ┣ Package.BlazorComponentLibrary |
27-
| |                     ┗ SharedPages |
28-
| |                             ┗ css |
29-
| |             ┣ _framework |
30-
| |             ┗ index.html |
31-
| just for making wiki style site if we decide to use the .client for testing and for creating the github page site then we dont need this |     ┣ GitPageBlazorWASMProgressive |
15+
| | ┣ MVCBlazor |
16+
| |     ┣ CICDPackageLocation |
17+
| |     ┣ GitPageBlazorWASM |
18+
| |     ┣ GitPageBlazorWASM.Client |
19+
| |     ┣ Package.BlazorComponentLibrary |
3220
| |             ┣ _Imports.razor |
33-
| |             ┣ App.razor |
34-
| |             ┗ Program.cs |
35-
| This would be out blazor component package |     ┣ Package.BlazorComponentLibrary |
36-
| |             ┣ _Imports.razor |
37-
| |             ┗ Components |
21+
| |             ┣ BCLVersion |
22+
| |                     ┗ VersionInfo.cs |
23+
| |             ┣ Components |
3824
| |                     ┗ SimpleCounter.razor |
39-
| Bunit and E2E tests, the E2E none javascript tests require prerendering and hence the server wasm project for testing |     ┣ PlaywrightXUnitGoesHere |
25+
| |             ┗ DependencyInjection |
26+
| |                     ┗ DependencyInjection.cs |
27+
| |     ┣ PlaywrightXUnitGoesHere |
28+
| |             ┣ justcheckinggitguardian.cs |
4029
| |             ┗ UnitTest1.cs |
41-
| to keep the projects slim, and if we decide to have seperate programs for creating the sites we put the site in a seperate project that everything can use, this wouldnt be packaged |     ┣ SharedPages |
30+
| |     ┣ SharedPages |
4231
| |             ┣ _Imports.razor |
43-
| there is just enough complexity to see things working|             ┣ Layout |
32+
| |             ┣ Layout |
4433
| |                     ┣ ComponentPageLayout.razor |
4534
| |                     ┗ MainLayout.razor |
4635
| |             ┗ Pages |
4736
| |                     ┣ ComponentPages |
4837
| |                             ┗ CounterComponentPage.razor |
4938
| |                     ┣ Error.razor |
5039
| |                     ┗ Home.razor |
51-
| we need this for prerendering this is the same kind of set up we would use when we consume our libraries (though see MVCBlazor project for actual setup) |     ┗ TestHostPrerenderWASM |
52-
| slim |             ┣ TestHostPrerenderWASM |
40+
| |     ┗ TestHostPrerenderWASM |
41+
| |             ┣ TestHostPrerenderWASM |
5342
| |                     ┣ Components |
5443
| |                             ┣ _Imports.razor |
5544
| |                             ┗ App.razor |
5645
| |                     ┗ Program.cs |
57-
| the client is standalone on release and used by TestHostPrerenderWASM in debug for testing. Look for the release conditions to see how it does both |             ┗ TestHostPrerenderWASM.Client |
46+
| |             ┗ TestHostPrerenderWASM.Client |
5847
| |                     ┣ _Imports.razor |
5948
| |                     ┣ App.razor |
60-
| if we put these in wwwroot then when running debug we would have two entry points so we keep them here and copy them on publish |                     ┣ GitPagesEntryPoint |
49+
| |                     ┣ GitPagesEntryPoint |
6150
| |                             ┣ 404.html |
6251
| |                             ┗ index.html |
6352
| |                     ┣ Program.cs |

0 commit comments

Comments
 (0)