After moving this website to Hugo it was time to automate the process of publishing changes. Luckily, GitHub introduced a feature called GitHub Actions some time ago. This allowed me to add an automated build and publish pipeline (see here). The pipeline has the following steps:
- A git checkout action pulls the repository including lfs and submodules.
- The website is built using
hugo-actionsaction is used to build the website.
- The built content is uploaded as github artifact, however, this step is optional.
ftp-actionis used for publishing the newly built site.
Now changes made to the git repository are immidiatly published to the website.