generated from icrdr/omoolab-project
add vitepress and workflow
All checks were successful
Deploy to Aliyun OSS / deploy (push) Successful in 24s
All checks were successful
Deploy to Aliyun OSS / deploy (push) Successful in 24s
This commit is contained in:
18
deploy.sh
Normal file
18
deploy.sh
Normal 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"
|
||||
Reference in New Issue
Block a user