Skip to content

Commit 624955f

Browse files
.NET 9 (#15)
1 parent a0c7335 commit 624955f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup .NET
1313
uses: actions/setup-dotnet@v1
1414
with:
15-
dotnet-version: 8.0.x
15+
dotnet-version: 9.0.x
1616
- name: Publish with dotnet
1717
run: dotnet publish ./src --configuration Release --output build
1818
- name: Deploy to Github Pages

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![](../../workflows/gh-pages/badge.svg)](../../actions)
44

55

6-
This project is an example of using GitHub Actions to automatically deploy a .NET 8 client-side
6+
This project is an example of using GitHub Actions to automatically deploy a .NET 9 client-side
77
Blazor app to GitHub Pages. For a live demo, check the following link:
88

99
https://blazorgithubpages.github.io
@@ -13,14 +13,14 @@ of the steps needed for a successful deploy.
1313

1414

1515
This project differs from [the project from which it's forked](https://github.com/fernandreu/blazor-pages) in that:
16-
- It is .NET 8, not .NET Core 3.1
16+
- It is .NET 9, not .NET Core 3.1
1717
- Fewer steps from fork to running site (see below)
1818

1919
## How to deploy
2020
1. Create a repository based on this template via the "Use this template" button (you don't fork, a fork is for contributing to this template or creating your own template)
2121
2. Go to your repository Settings > GitHub Pages > set the source branch to `gh-pages-from-actions`
2222
3. [Set permissions for GitHub Actions](https://stackoverflow.com/questions/73687176/permission-denied-to-github-actionsbot-the-requested-url-returned-error-403)
23-
4. Enable Dependabot: `Insights` > `Dependency graph` > `Dependabot` > Enable Dependabot
23+
4. (optional) Enable Dependabot: `Insights` > `Dependency graph` > `Dependabot` > Enable Dependabot
2424
5. View your site at https://[ `your user name` | `your organization name` ].github.io
2525

2626
## How it works
@@ -63,4 +63,4 @@ should contain the following three variables:
6363
The `gh-pages` branch **must** exist already for the deployment to be successful (this
6464
is a temporary limitation in the pipeline configuration).
6565

66-
In the case of GitHub Actions, only a single secret is needed: `ACCESS_TOKEN`, equivalent to `GitHubPAT` above. An example of a full deployment using GitHub Actions can also be found in my [blazor-fractals](https://github.com/fernandreu/blazor-fractals) repository.
66+
In the case of GitHub Actions, only a single secret is needed: `ACCESS_TOKEN`, equivalent to `GitHubPAT` above. An example of a full deployment using GitHub Actions can also be found in my [blazor-fractals](https://github.com/fernandreu/blazor-fractals) repository.

src/BlazorPages/BlazorPages.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.10" />
12-
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.10" PrivateAssets="all" />
11+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.1" />
12+
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="9.0.1" PrivateAssets="all" />
1313
<PackageReference Include="Serilog" Version="4.2.0" />
1414
<PackageReference Include="Serilog.Sinks.BrowserConsole" Version="8.0.0" />
1515
</ItemGroup>

0 commit comments

Comments
 (0)