Enable Git info in GitHub workflows

This commit is contained in:
Will Faught
2023-02-23 22:06:18 -08:00
parent ec254c8cd4
commit 06e5d5da6d

View File

@@ -21,7 +21,7 @@ jobs:
run: |
cd exampleSite
npm install
hugo --baseURL ${{ steps.pages.outputs.base_url }} --environment production --minify --themesDir ../..
hugo --baseURL ${{ steps.pages.outputs.base_url }} --enableGitInfo --environment production --minify --themesDir ../..
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
@@ -39,7 +39,7 @@ jobs:
# run: |
# cd exampleSite
# npm install
# hugo --baseURL ${{ steps.pages.outputs.base_url }} --environment production --minify --themesDir ../..
# hugo --baseURL ${{ steps.pages.outputs.base_url }} --enableGitInfo --environment production --minify --themesDir ../..
deploy:
environment:
name: github-pages