Skip to content

Instantly share code, notes, and snippets.

@sibsfinx
Created July 3, 2014 18:22
Show Gist options
  • Save sibsfinx/0ad3d0e05ae828f772c4 to your computer and use it in GitHub Desktop.
Save sibsfinx/0ad3d0e05ae828f772c4 to your computer and use it in GitHub Desktop.
build and deploy grunt project
#!/usr/bin/env bash
git branch -D gh-pages
git checkout --orphan gh-pages
git rm -rf .
git clean -fd -e dist
shopt -s dotglob
mv dist/* ./
rmdir dist
git add .
git commit -am 'build gh-pages'
git push -u -f origin gh-pages:gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment