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:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user