Action to build websites with Hugo
- Using Hugo Extended versions
- Using Hugo Docker image which is based on Alpine 3.12.
add to your workflow
- name: MayMeows Hugo build action
uses: MayMeowHQ/Hugo-Build-Action@v2
This will run hugo --enableGitinfo
. If you want to use diffrent config file you can use
- name: Run MayMeowHQ/Hugo-Build-Action@v2
uses: MayMeowHQ/Hugo-Build-Action@v2
with:
production-config: './production.config.toml'
hugo-version: '0.89.2'
hugo-sha: '8efea63ab960a91918a4c6131d10c244635cd983e4d083afdba6c6b99edb55b6'
Code abve will run hugo --config ./production.config.toml --enableGitInfo
Draft pages are not published with this action, you have to chage draft to false
for any pages you want to publish.