From 78f028da44dff0af979dd398912cec3c900b3fbe Mon Sep 17 00:00:00 2001 From: ParkSB Date: Mon, 21 Sep 2020 19:34:41 +0900 Subject: [PATCH] feat: Use gh-pages branch as GitHub Pages source branch --- tools/deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/deploy.sh b/tools/deploy.sh index 3088b63..b08e13a 100755 --- a/tools/deploy.sh +++ b/tools/deploy.sh @@ -31,9 +31,9 @@ if [[ $(git status -s) == "" ]]; then echo "> git commit -m \"dist: ${DATE}\"" git commit -m "dist: $DATE" - echo -e "\n${GREEN}Use subtree push to master branch...${WHITE}" - echo -e "${WHITE}> cd git push origin \`git subtree split --prefix ${DIST} development\`:master --force" - git push origin `git subtree split --prefix $DIST development`:master --force + echo -e "\n${GREEN}Use subtree push to gh-pages branch...${WHITE}" + echo -e "${WHITE}> cd git push origin \`git subtree split --prefix ${DIST} master\`:gh-pages --force" + git push origin `git subtree split --prefix $DIST master`:gh-pages --force echo -e "\n${GREEN}Reset the temporary changes...${WHITE}" echo -e "${WHITE}> git reset HEAD~"