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