Deployed at https://leannaweller.github.io
- Create a file post-commit in ${project_dir}/.git/hooks directory
- Add this code to file
#!/bin/sh
branch=$(git rev-parse --abbrev-ref HEAD);
echo $branch;
if [ "$branch" = "source" ]; then
echo "Build started"
git checkout master
git merge source
npm run build
git add .
git commit --m "build"
git checkout source
fi;