Pin hugo version

This commit is contained in:
Dave Gallant
2021-09-05 23:23:55 -04:00
parent 6b5bd7047f
commit 558d9d2732
3 changed files with 10 additions and 3 deletions

View File

@@ -15,11 +15,17 @@ jobs:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Read .env
id: hugo-version
run: |
. ./.env
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# extended: true
hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}'
extended: true
- name: Build
run: hugo --minify