Skip to content

Instantly share code, notes, and snippets.

@roberto-butti
Last active August 17, 2017 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roberto-butti/511ab387d8a392d7f5996848059fb9ec to your computer and use it in GitHub Desktop.
Save roberto-butti/511ab387d8a392d7f5996848059fb9ec to your computer and use it in GitHub Desktop.
Makefile to deploy your static Nuxtjs website on Github Pages
.PHONY: copy generate gitpush deploy
copy:
# rsync -rtvuc ./dist/ ../deploy/
rsync -rlpcgoDvzi --delete ./dist/ ../deploy/ --exclude-from 'exclude-list.txt'
gitpush:
cd ../deploy/ ;git add . ; git commit -am "deploy"; git push -u origin master; cd -
generate:
npm run generate
deploy: generate copy gitpush
updatemediumfeed:
curl "https://medium.com/feed/@robertodev" > static/lastmediumfeed.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment