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

GitHub Action

Hugo Actions

v0.0.2

Hugo Actions

mic

Hugo Actions

Commands to help with building Hugo based sites

Installation

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

              

- name: Hugo Actions

uses: srt32/hugo-action@v0.0.2

Learn more about this action in srt32/hugo-action

Choose a version

GitHub Action for Hugo

An Action to run hugo commands.

This example runs on pushes to the master branch and will run hugo --theme=hyde-x to build your site.

workflow "Hugo build" {
  resolves = [
    "Hugo Action",
  ]
  on = "push"
}

action "Hugo Action" {
  uses = "srt32/hugo-action@master"
  needs = "Filters for GitHub Actions"
  args = "--theme=hyde-x"
}

action "Filters for GitHub Actions" {
  uses = "actions/bin/filter@b2bea0749eed6beb495a8fa194c071847af60ea1"
  args = "branch master"
}