Category: github

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.

Related Articles