pelican-build-action/entrypoint.sh
2021-11-03 12:26:41 +05:30

23 lines
526 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
set -e
echo "CONFIG: $PELICAN_CONFIG_FILE"
echo "CONTENT: $PELICAN_CONTENT_FOLDER"
echo "OUTPUT: $PELICAN_OUTPUT_FOLDER"
echo 'Installing Python 🐍 Requirements '
pip install -r requirements.txt
echo 'Building site 👷 '
pelican -D ${PELICAN_CONTENT_FOLDER:=content} -o ${PELICAN_OUTPUT_FOLDER:=output} -s ${PELICAN_CONFIG_FILE:=publishconf.py}
if [ -f addons.py ]; then
echo 'Running add-ons '
python addons.py
else
echo 'No add-ons configured'
fi
echo 'Build complete 🎉🎉 🕺💃 '