How to Deploy Blazor WebAssembly on GitHub Pages Using GitHub Actions

See the original posting on DZone Python

I have been spending quite some time lately playing with Blazor. One of the nice things is that with WebAssembly, you can generate a static website and have it hosted on GitHub Pages for free.
Most importantly, the whole process can be automated with GitHub Actions so you don’t have to worry about it.

It’s not a complicated process, all in all just a few steps. There is only one caveat: if your repository is a “standard” User or Organization repository, you can deploy to Pages only from the master branch.