add vitepress and workflow
All checks were successful
Deploy to Aliyun OSS / deploy (push) Successful in 24s

This commit is contained in:
2026-04-21 20:02:53 +08:00
parent 1065700037
commit 0e5b3527b0
22 changed files with 2704 additions and 21 deletions

18
deploy.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# 自动获取当前 Git 分支名
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
# 拼接 Tag 名称:wiki-分支名
TAG_NAME="wiki-$BRANCH_NAME"
echo "当前分支:$BRANCH_NAME"
echo "即将创建 Tag:$TAG_NAME"
# 创建本地 Tag
git tag "$TAG_NAME"
# 推送到远程仓库
git push origin "$TAG_NAME"
echo -e "\n✅ Tag 创建并推送成功:$TAG_NAME"