Can releases be used to host large files for pages?

So I saw that with releases you can distribute large files (over 100 mb) to share the compiled programs like .exe files.

Is it possible to do something similar with pages? I have a unity game built for WebGL which I wish to host on GH pages, but it has a file with is too large to store in the normal repo. Can I place the built game into a release and host the release on github pages?


I recommend leveraging release artifacts to store your built game. A pages site could then link to the release download rather than having the page be the release download. Interesting thought though!

1 Like

I just want to clarify that I understood correctly.

So I publish the files from the game build as a release, then I embed them in index.html and link to the download URL of the required files?

Will this provide the same experience as websites like Miniclip in the sense that the game is playable fully in the browser or will this download the files to the user’s download folder?


I tried doing what you said on this repo

I published the required files as a release and linked them to this web page on gh pages. But I’m getting errors:

Access to XMLHttpRequest at '' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

Any idea how to fix it or was this not what you meant?

Thanks for testing that out so quickly. I think I now understand the issue better and believe to have led you wrong.

Does this guide accomplish what you’re trying to achieve?

This part is the problem:
Commit the Build/ and TemplateData/

I cant commit them because Build/ has a file which is over 100 mb allowed by github

Ah, that is unfortunate. The limit we are hitting makes GitHub Pages a tough choice for your use case. I am unaware of a way around the 100 MB limit for a Page :frowning:

Fore completeness, see this article that explains our error when attempting to host the build using releases: