Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
GitHub Action that builds Hugo sites using Hugo extended v0.164.0 on debian:bookworm-slim.
Build Hugo is a GitHub Action for building static websites with Hugo, the static site generator, by wrapping the Hugo extended binary in a Docker container based on debian:bookworm-slim. It lets any GitHub repository compile a Hugo project in CI without installing Hugo manually, and it is published under the lowply/build-hugo repository.
Build Hugo is a GitHub Action that runs the Hugo extended binary (version 0.164.0) inside a Debian-based container to generate static site output. As input it takes a Hugo project directory from the checked-out repository, and as output it produces the built public/ folder that can be deployed or uploaded. The action is designed to drop into any GitHub Actions workflow as a single step after checkout.
Build Hugo bundles the Hugo extended binary and the debian:bookworm-slim base image into a single action, with tags that track official Hugo releases. Its concrete features include:
docker run --rm -w /tmp -v $(pwd):/tmp lowply/build-hugo:v0.164.0 to build the same way outside CI for testing or debugging.Build Hugo is for developers and teams who compile Hugo static sites in GitHub Actions and want reproducible, pinned Hugo versions. It fits these roles:
Build Hugo works by running the Hugo command inside a Docker container built from the lowply/build-hugo image. In a GitHub Actions workflow, you check out your code, then reference the action with a tag matching the needed Hugo version, e.g. uses: lowply/[email protected]. The README shows a complete workflow example with on: [push].
With Build Hugo you can build Hugo sites without installing the Hugo binary on the GitHub runner. For example:
Yes. The GitHub Action and its Docker image are free and open source, published in the lowply/build-hugo repository. You only pay for standard GitHub Actions minutes when you run it in CI.
Yes. The action's tags mirror Hugo's release tags, so you can specify v0.68.3 or any other published tag. Versions 0.148.1 and newer are recommended because earlier tags rely on the debian:buster-slim base image whose mirrors are currently broken.
The action uses the Hugo extended edition, which supports features such as asset pipelines and modules. The exact capabilities depend on the Hugo version you pin via the action tag.
The README provides the command docker run --rm -w /tmp -v $(pwd):/tmp lowply/build-hugo:v0.164.0. It mounts your current directory into the container at /tmp and runs the Hugo build from there, giving you the same output as the GitHub Action.
Every Hugo release gets a corresponding tag on the lowply/build-hugo repository. Maintainers use ./script/update.sh to create a pull request for the new version and ./script/release.sh to publish it after tests pass, so tags stay aligned with Hugo releases.