benjamine / jsondiffpatch

Diff & patch JavaScript objects
MIT License
4.77k stars 464 forks source link

Fix live demo #359

Closed Methuselah96 closed 7 months ago

Methuselah96 commented 7 months ago

Fixes https://github.com/benjamine/jsondiffpatch/issues/354.

I didn't realize that the the GitHub Pages demo was depending on the HTML demo being located at ./docs/demo/index.html, which means I broke it when I moved everything around in https://github.com/benjamine/jsondiffpatch/pull/350.

Now that the HTML demo is written in TypeScript, it needs to be built before it can be deployed. This PR adds a GitHub Action to build and deploy the HTML demo to GitHub Actions and updates all the links to point the new correct address.

I tested it to make sure it worked on a fork.