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: | run: |
cd exampleSite cd exampleSite
npm install 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 - name: Upload artifact
uses: actions/upload-pages-artifact@v1 uses: actions/upload-pages-artifact@v1
with: with:
@@ -39,7 +39,7 @@ jobs:
# run: | # run: |
# cd exampleSite # cd exampleSite
# npm install # 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: deploy:
environment: environment:
name: github-pages name: github-pages