Last active
August 17, 2017 14:01
-
-
Save roberto-butti/511ab387d8a392d7f5996848059fb9ec to your computer and use it in GitHub Desktop.
Makefile to deploy your static Nuxtjs website on Github Pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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