pelican-build-action/entrypoint.sh

24 lines
526 B
Bash
Raw Normal View History

2021-06-26 19:30:30 +00:00
#!/bin/bash
set -e
2021-07-12 11:24:02 +00:00
echo "CONFIG: $PELICAN_CONFIG_FILE"
echo "CONTENT: $PELICAN_CONTENT_FOLDER"
echo "OUTPUT: $PELICAN_OUTPUT_FOLDER"
2021-06-26 19:30:30 +00:00
2021-07-12 07:20:35 +00:00
echo 'Installing Python 🐍 Requirements '
2021-06-26 19:30:30 +00:00
pip install -r requirements.txt
echo 'Building site 👷 '
2021-07-12 11:34:31 +00:00
pelican -D ${PELICAN_CONTENT_FOLDER:=content} -o ${PELICAN_OUTPUT_FOLDER:=output} -s ${PELICAN_CONFIG_FILE:=publishconf.py}
2021-06-26 19:30:30 +00:00
2021-11-03 06:56:41 +00:00
if [ -f addons.py ]; then
echo 'Running add-ons '
python addons.py
else
echo 'No add-ons configured'
fi
2021-07-11 18:49:08 +00:00
2021-07-10 08:59:54 +00:00
echo 'Build complete 🎉🎉 🕺💃 '