You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
478 B

#!/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://<USERNAME>.github.io
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
# 如果是部署到 https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:027xiguapi/pear-rec.git master:gh-pages
cd -