# Automatically Deploying a Hugo Website via GitHub Actions

DevFeed: [Automatically Deploying a Hugo Website via GitHub Actions](<https://devfeed.tech/articles/automatically-deploying-a-hugo-website-via-github-actions-18797.md>)

Original publisher: [Read original article](<https://www.morling.dev/blog/automatically-deploying-hugo-website-via-github-actions/>)

Published: 2019-12-26T09:00:00Z

Content type: tutorial

Language: en

Sources: [Gunnar Morling](<https://devfeed.tech/sources/gunnar-morling.md>)

Topics: [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Hugo](<https://devfeed.tech/topics/hugo.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [YAML](<https://devfeed.tech/topics/yaml.md>), [ssh](<https://devfeed.tech/topics/ssh.md>)

Tags: [deployment](<https://devfeed.tech/tags/deployment.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [hugo](<https://devfeed.tech/tags/hugo.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

## AI overview

A tutorial showing how to automatically build and deploy a Hugo website to GitHub Pages using GitHub Actions. It covers selecting deployment actions, configuring an SSH deploy key and secret, and creating a YAML workflow triggered by pushes to the master branch.

## Source excerpt

Table of Contents GitHub Actions To the Rescue Registering a Deploy Key Defining the Workflow As a software engineer, I like to automate tedious tasks as much as possible. The deployment of this website is no exception: it is built using the Hugo static site generator and hosted on GitHub Pages; so wouldn't it be nice if the rendered website would automatically be published whenever an update is pushed to its source code repository?