Skip to content

Commit c2174ed

Browse files
committed
ci: 更新发布工作流以使用 Git 提交哈希
-将发布文件名从时间戳改为 Git 提交哈希 - 更新 GitHub Release 名称和描述,使用 Git 提交哈希 -保留了原有的时间戳作为发布说明的一部分
1 parent 38461c9 commit c2174ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/php-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
uses: actions/upload-artifact@v4
5050
with:
5151
name: php-release-${{ steps.timestamp.outputs.timestamp }}
52-
path: release-${{ steps.timestamp.outputs.timestamp }}.zip
52+
path: release-${{ github.sha }}.zip
5353

5454
# 创建 GitHub Release
5555
- name: 创建 GitHub 发布
5656
uses: softprops/action-gh-release@v2
5757
with:
5858
tag_name: v${{ steps.timestamp.outputs.timestamp }}
59-
name: Release ${{ steps.timestamp.outputs.timestamp }}
59+
name: Release ${{ github.sha }}
6060
body: 自动构建发布提交版 ${{ github.sha }} 发布时间为 ${{ steps.timestamp.outputs.timestamp }}
6161
draft: false
6262
prerelease: false

0 commit comments

Comments
 (0)