30 lines
798 B
YAML
30 lines
798 B
YAML
name: 'Hugo setup'
|
|
description: 'GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended and Hugo Modules are supported.'
|
|
spec:
|
|
inputs:
|
|
hugo-version:
|
|
description: 'The Hugo version to download (if necessary) and use. Example: 0.58.2'
|
|
required: false
|
|
default: 'latest'
|
|
extended:
|
|
description: 'Download (if necessary) and use Hugo extended version. Example: true'
|
|
required: false
|
|
default: 'false'recursive
|
|
HUGO_ENV: production
|
|
---
|
|
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
setup-hugo:
|
|
stage: setup-hugo
|
|
image: registry.gitlab.com/pages/hugo/hugo_extended:latest
|
|
script:
|
|
- cd ${CI_PROJECT_DIR}
|
|
- hugo --minify
|
|
|
|
# runs:
|
|
# using: 'node16'
|
|
# main: 'lib/index.js'
|
|
# branding:
|
|
# icon: 'package'
|
|
# color: 'yellow' |