Update Netlify config and build CI

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2021-09-13 17:30:02 -04:00
parent 39b55d16d9
commit 628f2c6ea9
2 changed files with 11 additions and 3 deletions

View File

@@ -131,4 +131,7 @@ jobs:
destination-branch: main
git-user: terraform-docs-bot
git-user-email: bot@terraform-docs.io
git-commit-message: "Update website content"
git-commit-message: |-
Update website content
from: https://github.com/terraform-docs/terraform-docs/commit/${{ github.sha }}

View File

@@ -2,9 +2,14 @@
publish = "site/public"
[build.environment]
HUGO_VERSION = "0.80.0"
HUGO_VERSION = "0.87.0"
NODE_VERSION = "15.5.1"
NPM_VERSION = "7.3.0"
[context.deploy-preview]
command = "./scripts/docs/prepare-site.sh && cd site && npm install && hugo -b ${DEPLOY_PRIME_URL} --gc"
command = """
./scripts/docs/prepare-site.sh
cd site
npm install
hugo -b ${DEPLOY_PRIME_URL} --gc
"""