Skip to content

hugo#

Overview#

Build static sites with Hugo.

View the example site.

Usage#

Add the hugo pipeline to the .gitlab-ci.yml file:

include:
  - project: brettops/pipelines/hugo
    file: include.yml

The resulting site is captured as an artifact in the public/ directory.

Add the pages pipeline to publish the site to GitLab Pages:

include:
  - project: brettops/pipelines/hugo
    file: include.yml
  - project: brettops/pipelines/pages
    file: include.yml

An example site is published by this pipeline.