Use a specific Hugo version with GitHub Actions

Published:
, Updated:
The actions-hugo action allows to use a specific Hugo version in your GitHub Action.
name: <PIPELINE>
jobs:
build:
runs-on: <RUN_ON>
steps:
- name: Setup hugo
uses: peaceiris/[email protected]
with:
hugo-version: <HUGO_VERSION>
<PIPELINE>
: The name of your pipeline.<RUN_ON>
: The runner to use, see GitHub’s own documentation for possible values.<HUGO_VERSION>
: The released versions or uselatest
to always use the latest version of Hugo.