This is my working gitlab-ci.yml. I suppose the HUGO_ENV - production is required because it’s set to DEV by default.
image:
name: klakegg/hugo:ext-alpine
entrypoint : ['']
variables:
GIT_SUBMODULE_STRATEGY: recursive
HUGO_ENV: "production"
test:
script:
- hugo
except:
- master
pages:
script:
- hugo
artifacts:
paths:
- public
only:
- master
I upgraded Wowchemy (formerly Academic) and this was what broke things. The GitLab CI file I linked above fixes it.