Release v1.0.7
All checks were successful
自动版本发布 / AutoRelease (push) Successful in 1m14s

This commit is contained in:
iorebuild 2025-04-10 21:52:31 +08:00
parent 8c24ce7d93
commit 8861294fed

View File

@ -80,6 +80,21 @@ jobs:
BIN_FILES=${BIN_FILES%,} # 移除最后一个逗号
echo "bin_files=$BIN_FILES" >> $GITHUB_OUTPUT
- name: 获取上次发布标签
id: get-previous-tag
run: |
PREVIOUS_TAG=$(git tag --sort=-creatordate | sed -n '2p')
if [ -z "$PREVIOUS_TAG" ]; then
PREVIOUS_TAG="HEAD~1" # 如果没有上次标签,使用上一次提交
fi
echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT
- name: 获取提交记录
id: get-commit-log
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:
@ -88,7 +103,8 @@ jobs:
repository: ${{ github.repository }}
tag_name: ${{ steps.extract_version.outputs.version }}
release_name: Release ${{ steps.extract_version.outputs.version }}
body: "This is a release created by Gitea Release Action."
body: |
${{ steps.get-commit-log.outputs.commit_log }}
draft: false
prerelease: false
files: ${{ steps.find-bin-files.outputs.bin_files }}