File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : publish github pages
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - master
8
+ pull_request :
9
+ branches :
10
+ - master
11
+
12
+ jobs :
13
+ deploy :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ # Checkout the code
17
+ - uses : actions/checkout@v4
18
+
19
+ # Install .NET SDK
20
+ - name : Setup .NET SDK
21
+ uses : actions/setup-dotnet@v4
22
+ with :
23
+ dotnet-version : 8.0.x
24
+ - name : Install .NET WebAssembly Tools
25
+ run : dotnet workload install wasm-tools
26
+
27
+ # Publish the site
28
+ - name : Publish
29
+ run : dotnet publish /Russkyc.Timely/Russkyc.Timely.csproj -c:Release -o:publish -p:GHPages=true
30
+
31
+ # Deploy the site
32
+ - name : Deploy
33
+ uses : peaceiris/actions-gh-pages@v4
34
+ with :
35
+ github_token : ${{ secrets.GITHUB_TOKEN }}
36
+ publish_dir : publish/wwwroot
37
+ force_orphan : true
Original file line number Diff line number Diff line change 11
11
12
12
<ItemGroup >
13
13
<PackageReference Include =" Bit.Besql" Version =" 9.2.1" />
14
- <PackageReference Include =" BlazorWasmPreRendering.Build" Version =" 5.0.0" />
15
14
<PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly" Version =" 8.0.11" />
16
15
<PackageReference Include =" Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version =" 8.0.11" PrivateAssets =" all" />
17
16
<PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 9.0.0" >
20
19
</PackageReference >
21
20
<PackageReference Include =" Microsoft.EntityFrameworkCore.Sqlite" Version =" 9.0.0" />
22
21
<PackageReference Include =" MudBlazor" Version =" 7.15.0" />
22
+ <PackageReference Include =" PublishSPAforGitHubPages.Build" Version =" 3.0.0" />
23
23
</ItemGroup >
24
24
25
25
<ItemGroup >
You can’t perform that action at this time.
0 commit comments