Skip to content

Commit 628f2c6

Browse files
committed
Update Netlify config and build CI
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
1 parent 39b55d1 commit 628f2c6

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,4 +131,7 @@ jobs:
131131
destination-branch: main
132132
git-user: terraform-docs-bot
133133
git-user-email: bot@terraform-docs.io
134-
git-commit-message: "Update website content"
134+
git-commit-message: |-
135+
Update website content
136+
137+
from: https://github.com/terraform-docs/terraform-docs/commit/${{ github.sha }}

netlify.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22
publish = "site/public"
33

44
[build.environment]
5-
HUGO_VERSION = "0.80.0"
5+
HUGO_VERSION = "0.87.0"
66
NODE_VERSION = "15.5.1"
77
NPM_VERSION = "7.3.0"
88

99
[context.deploy-preview]
10-
command = "./scripts/docs/prepare-site.sh && cd site && npm install && hugo -b ${DEPLOY_PRIME_URL} --gc"
10+
command = """
11+
./scripts/docs/prepare-site.sh
12+
cd site
13+
npm install
14+
hugo -b ${DEPLOY_PRIME_URL} --gc
15+
"""

0 commit comments

Comments
 (0)