DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

How to Deploy Blazor WebAssembly on GitHub Pages Using GitHub Actions

4 years ago dzone.com

Summary: This is a summary of an article originally published by the source. Read the full original article here →

by 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.

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.

Otherwise, if your repository belongs to a Project, you can configure it to deploy from a different branch: The default publishing source for a project site is the gh-pages branch.

First of all, add this Javascript snippet to your index.html: As you can see from the comment, this code helps to handle URLs and redirections.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com