Merge pull request #1696 from actions/hugo-production-take2

Pages: Explicitly set Hugo environment variables as production
This commit is contained in:
James M. Greene
2022-08-22 18:29:05 -05:00
committed by GitHub
+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