Go Back

GitHub Actions for Automatic Deployment

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:

  1. A git checkout action pulls the repository including lfs and submodules.
  2. The website is built using hugo-actions action is used to build the website.
  3. The built content is uploaded as github artifact, however, this step is optional.
  4. An ftp-action is used for publishing the newly built site.

Now changes made to the git repository are immidiatly published to the website.