Skip to content

Commit

Permalink
feat: Use gh-pages branch as GitHub Pages source branch
Browse files Browse the repository at this point in the history
  • Loading branch information
parksb committed Sep 21, 2020
1 parent 97e7da6 commit 78f028d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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~"
Expand Down

0 comments on commit 78f028d

Please sign in to comment.