Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 37 lines (26 sloc) 946 Bytes
#! /bin/bash
# The purpose of this shell script is mainly building the static comments.
# Exit on any error
set -e
echo "Set git credentials."
git config --global ""
git config --global "Mehdi Sadeghi"
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}" > .git/credentials
echo "Install python deps for building comments."
pip install requests pyyaml cryptography langdetect pathlib2
echo "Build static comments if there are any."
# Disable exiting on errors automatically
set +e
#git checkout $BRANCH
#git pull origin $BRANCH
git add ./_source/_data/comments
git commit --message "Netlify - Update static comments." > /dev/null
if [ $? -eq 0 ]; then
echo "Pushing new comments."
#git remote add origin2
#git push origin2 $BRANCH
echo "Building the website."
jekyll build
You can’t perform that action at this time.