Okay, so I have uploaded an HTML5 game to GitHub pages. I have tried numerous ways to get around the shared array buffer error, and the one that seemed to be the best was Coi-serviceworker. To install it, one would put a .js file into their project, and then reference it in an HTML script, which was not specific. I assumed it was index.html, and I put it at the end, here:
That’s a very difficult thing you’re trying to do, and I don’t know if anyone has done it successfully. My advice is to just put your game on itch.io or somewhere else more amenable to web games. Add a link from the itch page to your repo, and add a link to your game on itch to your readme.