This is a template of a Blazor WebAssembly project with Github Actions to deploy the Blazor WASM site to Github Pages
You can access the page here: https://reusabletemplates.github.io/BlazorWASMwGithubPages
- Create a repository
- Create a
gh-pages
branch from master (or whatever you call it, I call it root) - Clone the repository and create your Blazor project
- Add NuGet library
PublishSPAforGitHubPages.Build
- Add GitHub Action, you can take mine ;-) Remember to adjust these places for your project:
run: dotnet publish {{relative path to your sln file}} -c:Release -o:publish -p:GHPages=true