You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
477 B

#!/usr/bin/env bash
set -e
declare -a zola_options
SCHABERNACK_ENV=${SCHABERNACK_ENV:-production}
if [ "${SCHABERNACK_ENV}" = "staging" ]; then
echo "Building staging version" >&2
zola_options+=(-u https://staging.schulischer-schabernack.de)
fi
./metadata.py
zola build ${zola_options[@]}
echo "Encoding…"
./encode.py
./metadata.py
zola build ${zola_options[@]}
if [ "${SCHABERNACK_ENV}" = "staging" ]; then
cp static/robots.txt.staging public/robots.txt
fi