A GitHub Action for building Hugo sites.
- Utilizes Hugo extended version 0.139.4
- Based on debian:buster-slim
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/[email protected]
The Build Hugo version aligns with Hugo's releases. If you need a specific Hugo version to build your website, you can specify it like this:
- name: Build Hugo
uses: lowply/[email protected]
To run it locally, use the following command:
docker run --rm -w /tmp -v $(pwd):/tmp lowply/build-hugo:v0.139.4
To create a PR for the latest version, run:
./script/update.sh
After reviewing and ensuring the PR passes all tests, merge it, and then execute:
./script/release.sh