Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jhayley on github.
  • I am hayley (https://keybase.io/hayley) on keybase.
  • I have a public key whose fingerprint is 6970 C914 15FD DDDB 98D2 8233 2447 6771 A80B C5F5

To claim this, I am signing this object:

@hylyh
hylyh / gh-pages-push.md
Last active October 29, 2017 23:51
Build and push subdirectory to gh-pages

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

howto

  • 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