diff --git a/scripts/page_deploy.sh b/scripts/page_deploy.sh index 8479f71..9f1742d 100644 --- a/scripts/page_deploy.sh +++ b/scripts/page_deploy.sh @@ -4,14 +4,11 @@ commitInfo=${1} set -e -## 进入上级目录,并编译 -npm run build +npm run build-proxy && cd docs/.vuepress/dist -## 切换到dist文件目录 -cd docs/.vuepress/dist -git init -git add -A + +git init && git add -A ## 如果没有输入commit信息,则采用默认 if [ "${commitInfo}" -eq "" ]; then @@ -21,16 +18,13 @@ fi git commit -m "refactor:${commitInfo}" ## 配置个人信息 -git config user.name '妹妹手上有抹茶' -git config user.email 'fairy_408@2925.com' +git config user.name '妹妹脸上有抹茶' && git config user.email 'fairy_408@2925.com' && git config --list -git config --list -# if you are deploying to https://.github.io -# git push -f git@github.com:/.github.io.git master -# if you are deploying to https://.github.io/ -git push -f https://github.com/mmdapl/408CSFamily.git master:pages/github +# git push -f https://@github.com/mmdapl/408CSFamily.git main + +git push -f https://@github.com/mmdapl/408CSFamily.git main:pages/github cd - \ No newline at end of file