Skip to content

Commit ef1d0c4

Browse files
committed
gh
1 parent 0932728 commit ef1d0c4

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Deploy AbiesWebAssembly
2+
3+
on:
4+
push:
5+
branches:
6+
- example-Abies
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: '9.0.x'
20+
21+
- name: Restore Dependencies
22+
run: dotnet restore ./examples/AbiesWebAssembly/AbiesWebAssembly.csproj
23+
24+
- name: Build Project
25+
run: dotnet publish ./examples/AbiesWebAssembly/AbiesWebAssembly.csproj -c Release -o build
26+
27+
- name: Deploy to GitHub Pages
28+
uses: peaceiris/actions-gh-pages@v4
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./build/wwwroot

Handlebars.Net.Helpers.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlazorAppWebAssembly", "exa
5151
EndProject
5252
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub Actions", "GitHub Actions", "{02EA681E-C7D8-13C7-8484-4AC65E1B71E8}"
5353
ProjectSection(SolutionItems) = preProject
54+
.github\workflows\BuildDeployAbiesWebAssembly.yml = .github\workflows\BuildDeployAbiesWebAssembly.yml
5455
.github\workflows\CreateRelease.yml = .github\workflows\CreateRelease.yml
5556
EndProjectSection
5657
EndProject

examples/AbiesWebAssembly/wwwroot/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</head>
1515

1616
<body>
17-
<script type="module" src="abies.js"></script>
17+
<script type="module" src="./abies.js"></script>
1818
<script type="module" src="https://unpkg.com/@fluentui/web-components"></script>
1919
</body>
2020

0 commit comments

Comments
 (0)