#!/usr/bin/env sh # 忽略错误 set -e # 构建 npm run build # 进入待发布的目录 cd ./.vitepress/dist # 如果是发布到自定义域名 # echo 'www.example.com' > CNAME git init git add -A git commit -m 'deploy' # 如果部署到 https://.github.io # git push -f git@github.com:/.github.io.git master # 如果是部署到 https://.github.io/ git push -f git@github.com:027xiguapi/pear-rec.git master:gh-pages cd -