# Has anyone published an HTML5 build to GitHub Pages successfully?

**URL:** <https://forum.defold.com/t/has-anyone-published-an-html5-build-to-github-pages-successfully/76978>\
**Category:** Questions\
**Created:** [May 19, 2024, 11:07am UTC](https://forum.defold.com/t/has-anyone-published-an-html5-build-to-github-pages-successfully/76978 "2024-05-19T11:07:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prism-glue](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/prism-glue/32/36192_2.png) [@prism-glue](https://forum.defold.com/u/prism-glue)\
**Post date:** [May 19, 2024, 11:07am UTC](https://forum.defold.com/t/has-anyone-published-an-html5-build-to-github-pages-successfully/76978/1 "2024-05-19T11:07:46Z")

</div>

I’ve built a project and published it to [balatro-fx 1.0.2](https://prismglue.github.io/balatro-fx/)  
The original source is at [https://github.com/prismglue/balatro-fx/docs/](https://github.com/prismglue/balatro-fx/docs/)

It works fine if I host the same binaries on my own webserver, but publishing to GitHub Pages seems to mangle the wasm. Has anyone had a similar experience or know of any workarounds?

---

<div class="post-metadata">

**Author:** ![Dragosha](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dragosha/32/5103_2.png) [@Dragosha](https://forum.defold.com/u/Dragosha)\
**Post date:** [May 19, 2024, 11:16am UTC](https://forum.defold.com/t/has-anyone-published-an-html5-build-to-github-pages-successfully/76978/2 "2024-05-19T11:16:22Z")

</div>

If you publish from Windows PC just add text file with name `.gitattributes` and one string inside:

```lua
* binary

```

to the `archive` folder of your project. After it you can make commit to GitHub.

---

<div class="post-metadata">

**Author:** ![prism-glue](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/prism-glue/32/36192_2.png) [@prism-glue](https://forum.defold.com/u/prism-glue)\
**Post date:** [May 19, 2024, 11:38am UTC](https://forum.defold.com/t/has-anyone-published-an-html5-build-to-github-pages-successfully/76978/3 "2024-05-19T11:38:07Z")

</div>

That did the trick, thank you! Saved me another hour of fumbling around.

---

<div class="post-metadata">

**Author:** ![prism-glue](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/prism-glue/32/36192_2.png) [@prism-glue](https://forum.defold.com/u/prism-glue)\
**Post date:** [May 20, 2024, 1:32am UTC](https://forum.defold.com/t/has-anyone-published-an-html5-build-to-github-pages-successfully/76978/4 "2024-05-20T01:32:17Z")

</div>

Following up on this, I threw together a simple GitHub Action for building a Defold project to avoid committing binaries.

[https://github.com/prismglue/defold-builder-simple](https://github.com/prismglue/defold-builder-simple)
