Update from Forestry.io

Harsh Shandilya updated content/posts/deploying-hugo-sites-with-github-actions.md
This commit is contained in:
Harsh Shandilya 2019-11-06 08:28:47 +00:00 committed by Forestry.io
parent 5f89986477
commit a58545d0c3
1 changed files with 12 additions and 4 deletions

View File

@ -1,8 +1,16 @@
+++
date = "2019-11-06"
title = "Deploying Hugo sites with GitHub actions"
categories = ["hugo"]
date = 2019-11-06T00:00:00Z
draft = true
slug = "deploying-hugo-sites-with-github-actions"
tags = ["hugo", "github actions", "static sites"]
categories = ["hugo"]
draft = true
title = "Deploying Hugo sites with GitHub actions"
+++
For the longest time, I have been used the [git middleware](http://github.com/abiosoft/caddy-git) for [caddyserver](https://caddyserver.com) to constantly deploy my [Hugo](https://gohugo.io) site from [GitHub](https://github.com/msfjarvis/msfjarvis.website).
But this approach had a few problems, notably force pushing (I know, shush) caused the repository to break because the plugin didn't support those. While not frequent, it was annoying enough to seek alternatives.
Enter [GitHub Actions](https://github.com/features/actions).
GitHub's in-built CI/CD solution is quite powerful and I decided to leverage it for automated deploys.