One command to build your project and deploy a subdirectory to your gh-pages branch. Originally created by @jkap
Warning: This script force pushes to gh-pages every time, you shouldn't plan on working in that branch if you use this
- Make sure you already have a gh-pages branch
- Replace BUILD and BUILDDIR variables with the build command and the directory your web project is built to
- Make the script executable
chmod +x gh-pages-push.sh
- Run
./gh-pages-push.sh
If you have any working changes when you push, they will still be there after the script finishes.
License: MIT (c) 2017 jenn kaplan and j hayley