Skip to content

Commit

Permalink
Updated versions for packages, .NET and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
1-max-1 committed Nov 25, 2024
1 parent 8c85f3a commit ca1da8f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/gh-pages-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ jobs:
steps:
# Clone
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v2
uses: actions/configure-pages@v5

- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.101

Expand All @@ -48,21 +48,22 @@ jobs:
- name: Change base-tag in index.html from / to WASMSerialTerminal
run: sed -i 's/<base href="\/" \/>/<base href="\/WASMSerialTerminal\/" \/>/g' WASMSerialTerminal/wwwroot/index.html

# Publishes Blazor project to the release-folder
# Publishes Blazor project to the release folder
- name: Publish Project
run: dotnet publish WASMSerialTerminal/WASMSerialTerminal.csproj -c Release -o release --nologo

# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
# This is needed because Blazor uses underscores in the _framework folder, and without it the project will not function.
# This is needed because Blazor uses underscores in folders such as _framework.
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll

# Upload publish folder to github pages
# Upload publish folder to github artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: 'release/wwwroot'

# Deploy the artifact to Gtihub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions WASMSerialTerminal/Shared/DataInputBox.razor
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
private string bytesTextboxErrorMessage = "";

// Block anything that isn't commas or digits
private void OnBytesInput(string value) {
if (Regex.IsMatch(value, "^[0-9,]*$")) {
currentBytesString = value;
private void OnBytesInput(string? value) {
if (Regex.IsMatch(value!, "^[0-9,]*$")) {
currentBytesString = value!;
}
}

Expand Down
8 changes: 4 additions & 4 deletions WASMSerialTerminal/WASMSerialTerminal.csproj
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="7.0.1" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="7.0.1" PrivateAssets="all" />
<PackageReference Include="Radzen.Blazor" Version="4.13.6" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.11" PrivateAssets="all" />
<PackageReference Include="Radzen.Blazor" Version="5.6.7" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit ca1da8f

Please sign in to comment.