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
|
id: pages
|
||||||
uses: actions/configure-pages@v1
|
uses: actions/configure-pages@v1
|
||||||
- name: Build with Hugo
|
- name: Build with Hugo
|
||||||
|
env:
|
||||||
|
# For maximum backward compatibility with Hugo modules
|
||||||
|
HUGO_ENVIRONMENT: production
|
||||||
|
HUGO_ENV: production
|
||||||
run: |
|
run: |
|
||||||
hugo \
|
hugo \
|
||||||
--environment production \
|
|
||||||
--minify \
|
--minify \
|
||||||
--baseURL ${{ steps.pages.outputs.base_url }}
|
--baseURL ${{ steps.pages.outputs.base_url }}
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
|||||||
Reference in New Issue
Block a user