Set HUGO_ENV* env vars instead of CLI flag

Reverts https://github.com/actions/starter-workflows/pull/1689

Fixes https://github.com/actions/starter-workflows/issues/1683
This commit is contained in:
James M. Greene
2022-08-22 16:13:12 -05:00
committed by GitHub
parent ac5313d9a6
commit 709400e808
+4 -1
View File
@@ -44,9 +44,12 @@ jobs:
id: pages
uses: actions/configure-pages@v1
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--environment production \
--minify \
--baseURL ${{ steps.pages.outputs.base_url }}
- name: Upload artifact