🔖 发布 4.8.0 正式版本

This commit is contained in:
Binary Wang
2026-01-03 23:30:31 +08:00
parent 7c6dbf15e4
commit 42f727cd41
36 changed files with 51 additions and 36 deletions

View File

@@ -33,7 +33,22 @@ jobs:
VERSION="${BASE_VER}.B"
TAG="v${BASE_VER}"
IS_RELEASE="true"
echo "Matched release commit: VERSION=$VERSION, TAG=$TAG"
echo "Matched test release commit: VERSION=$VERSION, TAG=$TAG"
# 检查并打tag
if git tag | grep -q "^$TAG$"; then
echo "Tag $TAG already exists."
else
git config user.name "Binary Wang"
git config user.email "a@binarywang.com"
git tag -a "$TAG" -m "Release $TAG"
git push origin "$TAG"
echo "Tag $TAG created and pushed."
fi
elif [[ "$COMMIT_MSG" =~ ^:bookmark:\ 发布\ ([0-9]+\.[0-9]+\.[0-9]+)\ 正式版本 ]]; then
VERSION="${BASH_REMATCH[1]}"
TAG="v${VERSION}"
IS_RELEASE="true"
echo "Matched formal release commit: VERSION=$VERSION, TAG=$TAG"
# 检查并打tag
if git tag | grep -q "^$TAG$"; then
echo "Tag $TAG already exists."