1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-03 10:33:47 +08:00

feat: 修改page页面deploy脚本

This commit is contained in:
妹妹下雨回不去
2023-02-11 00:22:05 +08:00
parent 164f1753a6
commit 53364e4911

View File

@@ -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://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# if you are deploying to https://<USERNAME>.github.io/<REPO>
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 -