Skip to content

Instantly share code, notes, and snippets.

@xaviervia
Created January 19, 2017 08:08
Show Gist options
  • Save xaviervia/24b1b6ef2a69b5f623289f4673ef465b to your computer and use it in GitHub Desktop.
Save xaviervia/24b1b6ef2a69b5f623289f4673ef465b to your computer and use it in GitHub Desktop.
My Makefile for Github pages
# Assumes that:
# - You are on the master branch
# - Your dist npm task puts things into the dist/ folder
gh-pages:
-git checkout -b gh-pages
git checkout gh-pages
git merge master
npm run dist
cp dist/* .
git add . && git commit -m "♻️ 📄"
git push origin gh-pages
git checkout master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment