Files
ChopperBot/doc/deploy.sh
T
2023-05-19 01:29:47 +08:00

28 lines
708 B
Bash

#!/usr/bin/env sh
# 确保脚本抛出遇到的错误
set -e
# 生成文档
yarn run build
# 进入生成的文件夹
cd docs/.vuepress/dist
# 输出 CNAME 文件
echo "baomidou.com" > CNAME
echo "www.baomidou.com" >> CNAME
echo "google.com, pub-4147143076931995, DIRECT, f08c47fec0942fa0" > ads.txt
# msg="来自Github Actions的自动部署,更新于$(TZ=UTC-8 date "+%Y-%m-%d %H:%M:%S")"
# codingUrl=https://${CODING_USER}:${CODING_TOKEN}@e.coding.net/yangyang0507/mybatis-plus-doc.git
# git config --global user.name "D.Yang"
# git config --global user.email "koyangslash@gmail.com"
# git init
# git remote add origin $codingUrl
# git add -A
# git commit -m "${msg}"
# git push -f origin master