Release v1.0.5
Some checks failed
自动版本发布 / AutoRelease (push) Failing after 1m1s

This commit is contained in:
iorebuild 2025-04-10 21:02:19 +08:00
parent 852cafa146
commit 4ecf889019

View File

@ -59,24 +59,24 @@ jobs:
# 从提交信息中提取 vX.X.X 格式的版本号
VERSION=$(echo "${{ github.event.head_commit.message }}" | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+')
echo "提取到的版本号: $VERSION"
echo "version=$VERSION" >> $RELEASE_OUT
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: 验证版本号
run: |
if [ -z "${{ steps.extract_version.outputs.version }}" ]; then
if [ -z "$GITHUB_OUTPUT" ]; then
echo "::error::提交信息中未找到有效的版本号 (示例: 'Release v1.0.5')"
exit 1
fi
- name: 创建并推送标签
run: |
git tag -a RELEASE_OUT \
-m "Release RELEASE_OUT"
git push origin RELEASE_OUT
git tag -a $GITHUB_OUTPUT \
-m "Release $GITHUB_OUTPUT"
git push origin $GITHUB_OUTPUT
- name: 创建Gitea发布
uses: https://gitea.com/actions/release-action@main
with:
tag_name: RELEASE_OUT
release_name: Release RELEASE_OUT
body: "自动化发布版本 RELEASE_OUT"
tag_name: $GITHUB_OUTPUT
release_name: Release $GITHUB_OUTPUT
body: "自动化发布版本 $GITHUB_OUTPUT"