Add build script and make checkboxes enabled
This commit is contained in:
parent
febce549dc
commit
fc17f838e7
@ -3,8 +3,7 @@ pages:
|
|||||||
script:
|
script:
|
||||||
- wget https://github.com/getzola/zola/releases/download/v0.12.2/zola-v0.12.2-x86_64-unknown-linux-gnu.tar.gz -O zola.tgz
|
- wget https://github.com/getzola/zola/releases/download/v0.12.2/zola-v0.12.2-x86_64-unknown-linux-gnu.tar.gz -O zola.tgz
|
||||||
- tar zxvf zola.tgz
|
- tar zxvf zola.tgz
|
||||||
- git clone https://github.com/getzola/book.git themes/book/
|
- ./build.sh
|
||||||
- ./zola build
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
10
build.sh
Executable file
10
build.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
git clone https://github.com/getzola/book.git themes/book/
|
||||||
|
rm -rf public/
|
||||||
|
zola build
|
||||||
|
|
||||||
|
# Make checkboxes editable, just in case the user wants to keep their own checklist.
|
||||||
|
find public/ -name "*.html" -type f -exec sed -i 's/input disabled=""/input/g' {} +
|
@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
[build]
|
[build]
|
||||||
publish = "public"
|
publish = "public"
|
||||||
command = "git clone https://github.com/getzola/book.git themes/book/; zola build"
|
command = "./build.sh"
|
||||||
|
|
||||||
[build.environment]
|
[build.environment]
|
||||||
ZOLA_VERSION = "0.12.2"
|
ZOLA_VERSION = "0.12.2"
|
||||||
|
|
||||||
[context.deploy-preview]
|
|
||||||
command = "zola build --base-url $DEPLOY_PRIME_URL"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user