Hugo website build and deploy via a GitHub workflow for Kanto
Dear Eclipse Team,
We currently have Kanto's website built using Hugo and we want to automate the process using a GitHub workflow.
We are aware that we can request a Jenkins job to be configured for that purpose but we really want to try to keep everything as open as possible and have it consistently available for updates and configurations in the project's main repository.
Looking into the provided Jenkins Job example, we can break it down into a couple of steps:
- checkout
- build
- push the diff to the dedicated repo (and branch) via an authorized (SSH) machine user
As a step one - we do not foresee staging and want to keep it simple to begin with small steps.
What we would imagine is doing the same via GitHub actions in a workflow utilizing the GitHub Deployment Keys (or a token if possible) that can be configured and is accessible securely within a workflow for the machine user to authorize from the GitHub repo to the target one where the built web resources need to be pushed.
Does that sound viable? Do you think you could support us on this one?
Any ideas and expertise are much appreciated and we will be happy to have your opinion and help on this one!