Skip to content

Commit daca0a1

Browse files
committed
👷 restore github pages workflow
1 parent a9ca4ad commit daca0a1

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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

Russkyc.Timely/Russkyc.Timely.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="Bit.Besql" Version="9.2.1" />
14-
<PackageReference Include="BlazorWasmPreRendering.Build" Version="5.0.0" />
1514
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11"/>
1615
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.11" PrivateAssets="all"/>
1716
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
@@ -20,6 +19,7 @@
2019
</PackageReference>
2120
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
2221
<PackageReference Include="MudBlazor" Version="7.15.0" />
22+
<PackageReference Include="PublishSPAforGitHubPages.Build" Version="3.0.0" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

0 commit comments

Comments
 (0)