Created
January 31, 2020 05:28
-
-
Save ezy/034807c61f97da30f88dd990aaea424b to your computer and use it in GitHub Desktop.
deploy to github pages bash script
This file contains hidden or 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
#!/bin/bash | |
hugo | |
sleep 2 | |
rm -rf ../minim-www/* | |
mv public/{*,.[^.]*} ../minim-www | |
cd ../minim-www | |
git add . | |
git commit -m "deploy for $(date +%Y%m%d-%T)" | |
git push origin master | |
cd ../minim | |
rm -rf public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment