I'm working on a personal website builder. My goal is to be able to manipulate my page within the browser and then hit a 'Publish' button and have the new HTML file to be committed to the Github repository where my code is hosted.
I've been able to figure out everything up to generating the updated HTML. However, after going through the GitHub documentation I could not really understand how files should be processed prior or committed to the repository using the API. Could someone please help me out?
PS: I'd be using JavaScript to generate the HTML and for API calls. Also if there is a better method to achieve my goal I'm open to those too.