This commit is contained in:
parent
8861294fed
commit
894da51993
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user