Skip to content

Instantly share code, notes, and snippets.

@ezy
Created January 31, 2020 05:28
Show Gist options
  • Save ezy/034807c61f97da30f88dd990aaea424b to your computer and use it in GitHub Desktop.
Save ezy/034807c61f97da30f88dd990aaea424b to your computer and use it in GitHub Desktop.
deploy to github pages bash script
#!/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