Use a specific Hugo version with GitHub Actions View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-github" href="/tags/github">github</a>, <a class="post-tag post-tag-github-actions" href="/tags/github-actions">github actions</a>, and <a class="post-tag post-tag-hugo" href="/tags/hugo">hugo</a>

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/actions-hugo@v2
        with:
          hugo-version: <HUGO_VERSION>