mirror of
https://github.com/vale981/dato-cms-deploy-demo
synced 2025-03-04 08:51:41 -05:00
First commit
This commit is contained in:
commit
bc4d9aeb07
5 changed files with 22 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
dist
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
[](https://deploy-preview-374--app.netlify.com/start/deploy?repository=https://github.com/calavera/template-test)
|
4
build.sh
Executable file
4
build.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
mkdir -p dist
|
||||
|
||||
token=$CONTENTFUL_TOKEN
|
||||
sed -e "s/%CONTENTFUL_TOKEN%/$token/" index.template > dist/index.html
|
7
index.template
Normal file
7
index.template
Normal file
|
@ -0,0 +1,7 @@
|
|||
<html lang="en">
|
||||
<body>
|
||||
Deploy to Netlify template test:
|
||||
|
||||
CONTENTFUL_TOKEN = %CONTENTFUL_TOKEN%
|
||||
</body>
|
||||
</html>
|
9
netlify.toml
Normal file
9
netlify.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
[build]
|
||||
command = "./build.sh"
|
||||
publish = "dist"
|
||||
|
||||
[template]
|
||||
incoming-hooks = ["Contentful"]
|
||||
|
||||
[template.environment]
|
||||
CONTENTFUL_TOKEN = "change me"
|
Loading…
Add table
Reference in a new issue