Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
code

GitHub Action

Build Hugo

v0.85.0

Build Hugo

code

Build Hugo

Run the hugo command to build a website

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Build Hugo

uses: lowply/build-hugo@v0.85.0

Learn more about this action in lowply/build-hugo

Choose a version

Build Hugo

A GitHub Action to build Hugo site.

Usage

Example workflow

name: Build Hugo
on: [push]
jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: Check out code
      uses: actions/checkout@v2
    - name: Build Hugo
      uses: lowply/build-hugo@v0.85.0

Versioning

Build Hugo version is designed to match with the Hugo's version. If you'd like to use a specific version of Hugo to build your website, do it like this:

    - name: Build Hugo
      uses: lowply/build-hugo@v0.68.3

Running it locally

docker run --rm -w /tmp -v $(pwd):/tmp lowply/build-hugo:v0.85.0

Development

Catching up with the latest Hugo version

Run this to create a PR:

./script/update.sh

Review the PR and make sure it passes the test. After merging the update PR, run:

./script/release.sh