I realised that it’s possible to host your HTML build straight in Google Drive.
The below steps result in a publicly shareable link to playing your game straight in the browser.
Here are all the steps:
- Go to drive.google.com.
- Upload the folder containing the HTML build of your game
- Right click the folder, click share, click advanced, make viewing it public.
- Get the ID for the project folder, it’s part of the shareable link. It’s the one after “id=”
- Make a url www.googledrive.com/host/< folder-id>/< path to html file >
- Eg. www.googledrive.com/host/0B5Tr3LykUDUqVUtUUWtnZjBYcG8/platformer.html
I based my approach on: Google Workspace Updates: Deprecating web hosting support in Google Drive
Unfortunately it seems this feature will be discontinued after August this year. But before then, someone has hopefully found another site that works just as well. I tried GitHub’s hosting ( https://pages.github.com/ ) as well, but that one unfortunately gives errors when trying to play Defold games.
