Created
June 15, 2017 23:30
-
-
Save yydai/18a9e5e80547dedb5195134a5a3832e9 to your computer and use it in GitHub Desktop.
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
pub_date = `date +'%y.%m.%d %H:%M:%S'` | |
messages = "Auto published by yydai at $(pub_date)" | |
publish: | |
@echo "======================================" | |
@echo "Begin publish the site, please wait..." | |
@echo "======================================" | |
@git add . | |
@-git commit -m $(messages) | |
@-git pull | |
@git push origin | |
@echo "===============Success================" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment