Created
February 25, 2018 05:12
-
-
Save EYHN/916dba5f42ef8e6c6cd9d34751f9d04b to your computer and use it in GitHub Desktop.
Auto deploy github page.
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
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