How to get Gogs to automatically post to GitHub Pages?
Hi! I'm trying to replicate a GitHub/Lab Pages setup using the combo of Gogs and GitHub Pages on Cloudron. Basically the goal is that anytime a commit occurs on Gogs or local changes are pushed to it, I want it to deploy to the GitHub Pages site. I also want to do this in a way that doesn't expose the credentials to GitHub Pages in a git config data file.
My assumption is that, if this is possible, it would be through Git Hooks on Gogs. But I don't see how best to include login credentials there. I'm not the best at shell scripts. Can anyone help me with this?
Thank you so much.
@ntnsndr possible webhook? I am not familiar with gogs, but it supports webhooks right? If not you could install n8n and automate the task you would normally do manually.
@murgero Thanks—yes, it does support Webhooks, as well as Git Hooks. But any suggestions how to handle the authentication process that GitHub Pages requires in a script?
@ntnsndr You talking about Github Pages official, or the Cloudron app?