Skip to content

Commit d68a99a

Browse files
committed
fix(docs): set HUGO_ENV=production explicitly in v2 workflow
Without explicit HUGO_ENV=production, Hugo loads config/_default/params.toml which only has a single "Latest" entry. The full version list for the version picker lives in config/production/params.toml (maintained by bump_doc_dependencies.py during releases). Hugo defaults to production for builds, but being explicit matches the original hugo-build-versioned-action and avoids any ambiguity. jira: trivial risk: nonprod
1 parent 7c8f9d9 commit d68a99a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/netlify-deploy-v2.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ jobs:
124124
restore-keys: hugo-resources-
125125
- name: Build documentation
126126
working-directory: ./docs
127+
env:
128+
HUGO_ENV: production
127129
run: hugo --minify --baseURL https://www.gooddata.com/docs/python-sdk
128130
- name: Publish (draft)
129131
uses: netlify/actions/cli@master

0 commit comments

Comments
 (0)