diff --git a/script/deploy.sh b/script/deploy.sh index 223ead4..ce637fb 100644 --- a/script/deploy.sh +++ b/script/deploy.sh @@ -2,8 +2,16 @@ cd .. mkdir temp GITHUB_URL=https://oauth:${LLOneBot_GH_TOKEN}@github.com/LLOneBot/llonebot.github.io git clone ${GITHUB_URL} temp + +rm -rf temp/* mv ./LLOneBotDoc/docs/.vitepress/* temp + cd ./temp + +git config --global init.defaultBranch main +git remote add origin ${GITHUB_URL} +git branch -M main + git config --global user.name "Mlikiowa" git config --global user.email "nanaeonn@outlook.com" git add *