Skip to content

lowply/build-hugo

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.128.2

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.128.2

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