From 894da51993c7a42c7a238b7db0bac8c88fa23128 Mon Sep 17 00:00:00 2001 From: iorebuild Date: Thu, 10 Apr 2025 21:58:49 +0800 Subject: [PATCH] Release v1.0.8 --- .gitea/workflows/AutoRelease.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/AutoRelease.yaml b/.gitea/workflows/AutoRelease.yaml index a967977..d5777b5 100644 --- a/.gitea/workflows/AutoRelease.yaml +++ b/.gitea/workflows/AutoRelease.yaml @@ -62,6 +62,7 @@ jobs: - name: 验证版本号 run: | + echo "${{ steps.extract_version.outputs.version }}" if [ -z "${{ steps.extract_version.outputs.version }}" ]; then echo "::error::提交信息中未找到有效的版本号 (示例: 'Release v1.0.5')" exit 1 @@ -78,6 +79,7 @@ jobs: run: | BIN_FILES=$(find ./Bin -name "*.bin" -print0 | tr '\0' ',') BIN_FILES=${BIN_FILES%,} # 移除最后一个逗号 + echo "bin_files=$BIN_FILES" echo "bin_files=$BIN_FILES" >> $GITHUB_OUTPUT - name: 获取上次发布标签 @@ -88,15 +90,13 @@ jobs: PREVIOUS_TAG="HEAD~1" # 如果没有上次标签,使用上一次提交 fi echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT - - - name: 获取提交记录 + + - name: 创建Gitea发布 id: get-commit-log + uses: https://gitea.com/actions/gitea-release-action@main run: | COMMIT_LOG=$(git log ${{ steps.get-previous-tag.outputs.previous_tag }}..HEAD --pretty=format:"- %s (%h)" | tr '\n' '\r') echo "commit_log=$COMMIT_LOG" >> $GITHUB_OUTPUT - - - name: 创建Gitea发布 - uses: https://gitea.com/actions/gitea-release-action@main with: gitea_token: ${{ secrets.AUTOGENERATE }} gitea_instance_url: ${{ github.server_url }}