1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-02-12 06:46:39 +08:00
Files
408CSFamily/scripts/page_deploy.sh
2023-02-11 00:22:05 +08:00

30 lines
571 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env sh
commitInfo=${1}
set -e
npm run build-proxy && cd docs/.vuepress/dist
git init && git add -A
## 如果没有输入commit信息则采用默认
if [ "${commitInfo}" -eq "" ]; then
commitInfo="408CSFamily page init"
fi
git commit -m "refactor:${commitInfo}"
## 配置个人信息
git config user.name '妹妹脸上有抹茶' && git config user.email 'fairy_408@2925.com' && git config --list
# git push -f https://@github.com/mmdapl/408CSFamily.git main
git push -f https://@github.com/mmdapl/408CSFamily.git main:pages/github
cd -