File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
TestHostPrerenderWASM/TestHostPrerenderWASM.Client Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ jobs:
423423 env :
424424 INDEPENDENT_CLIENT_GH_PAGES : true
425425 run : |
426- dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Debug \
426+ dotnet publish ./TestHostPrerenderWASM/TestHostPrerenderWASM.Client/TestHostPrerenderWASM.Client.csproj --configuration Release \
427427 /p:INDEPENDENT_CLIENT_GH_PAGES=true \
428428 /p:BCLVersion=$BCL_VERSION \
429429 /p:NupkgOutputPath=$NUPKG_OUTPUT_PATH \
Original file line number Diff line number Diff line change 1212 <!-- worked but hindered other stuff qqqq <WwwRootDir Condition="'$(Configuration)'=='Release'">$(PublishDir)\wwwroot</WwwRootDir>-->
1313 <WwwRootDir Condition =" '$(Configuration)'=='Release'" >$(PublishDir)\wwwroot</WwwRootDir >
1414 <!-- <WwwRootDir Condition="'$(GhPageRelease)' == 'true'">$(PublishDir)\wwwroot"</WwwRootDir> qqqq put back in if see works-->
15- <DefineConstants Condition =" '$(GhPageRelease)' == 'true'" >$(DefineConstants);GH_PAGE_RELEASE</DefineConstants >
15+ <!-- < DefineConstants Condition="'$(GhPageRelease)' == 'true'">$(DefineConstants);GH_PAGE_RELEASE</DefineConstants> -- >
1616 </PropertyGroup >
1717
1818
19- <Target Name =" PublishGitHubPages" AfterTargets =" Publish" >
19+ <Target Name =" PublishGitHubPages" AfterTargets =" Publish" Condition = " '$(Configuration)'=='Release' " >
2020 <Message Text =" SolutionDir: $(SolutionDir)" Importance =" high" />
2121 <Message Text =" MSBuildProjectDirectory: $(MSBuildProjectDirectory)" Importance =" high" />
2222 <Message Text =" PublishDir: $(PublishDir)" Importance =" high" />
2828 <Touch Files =" $(PublishDir).nojekyll" AlwaysCreate =" true" />
2929
3030 <!-- Move wwwroot contents to docs root and remove wwwroot folder -->
31- <ItemGroup >
31+ <ItemGroup Condition = " '$(Configuration)'=='Release' " >
3232 <WwwRootFiles Include =" $(WwwRootDir)\**\*.*" />
3333 </ItemGroup >
3434
35- <Copy SourceFiles =" @(WwwRootFiles)" DestinationFolder =" $(PublishDir)\%(RecursiveDir)" OverwriteReadOnlyFiles =" true" />
35+ <Copy Condition = " '$(Configuration)'=='Release' " SourceFiles =" @(WwwRootFiles)" DestinationFolder =" $(PublishDir)\%(RecursiveDir)" OverwriteReadOnlyFiles =" true" />
3636
3737 <!-- Provide and entry point-->
3838 <ItemGroup >
You can’t perform that action at this time.
0 commit comments