Below you will find pages that utilize the taxonomy term “Github-Actions”
Sunday, 2021-03-21 17:20 UTC
Keeping Hugo Upto Date With Github Actions
It’s been about 5 months since I moved this blog over to a static site build with Hugo and in this time I’ve never really gotten round to updating Hugo following new releases. So the solution that jumped out recently was to automate upgrades via GitHub actions.
Finding out the current release is very easy as Hugo is hosted on GitHub, plus they publish releases. This means it’s possible to get the tag for the latest version with Javascript as follows: