Skip to content

Instantly share code, notes, and snippets.

@EYHN
Created February 25, 2018 05:12
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 EYHN/916dba5f42ef8e6c6cd9d34751f9d04b to your computer and use it in GitHub Desktop.
Save EYHN/916dba5f42ef8e6c6cd9d34751f9d04b to your computer and use it in GitHub Desktop.
Auto deploy github page.
mkdir ./deploy-gh-page
cp -rf "${DeployPath}" ./deploy-gh-page
cd ./deploy-gh-page
git init
git config --global push.default matching
git config --global user.email "${GitHubEmail}"
git config --global user.name "${GitHubUser}"
git add --all .
git commit -m "Auto deploy github page - `date`"
git push --quiet --force https://${GitHubKEY}@github.com/${GitHubRepo}.git master:${DeployBranch}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment