pelican-build-action/entrypoint.sh

28 lines
658 B
Bash
Raw Normal View History

2021-06-26 19:30:30 +00:00
#!/bin/bash
set -e
echo "REPO: $GITHUB_REPOSITORY"
echo "ACTOR: $GITHUB_ACTOR"
remote_repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
2021-06-26 20:12:37 +00:00
remote_branch=${GH_PAGES_BRANCH:=gh-pages}
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
if [ -n "$PELICAN_THEME_FOLDER" ]; then
echo 'Installing Node Modules 🧰 '
pushd $PELICAN_THEME_FOLDER
npm install
popd
fi
echo 'Building site 👷 '
2021-07-04 22:50:05 +00:00
pelican ${PELICAN_CONTENT_FOLDER:=content} -o output -s ${PELICAN_CONFIG_FILE:=publishconf.py}
2021-06-26 19:30:30 +00:00
2021-07-12 07:20:35 +00:00
echo 'Running add-ons ❌ 👉🏽 ✔ '
python addons.py
2021-07-11 18:49:08 +00:00
2021-07-10 08:59:54 +00:00
echo 'Build complete 🎉🎉 🕺💃 '