Skip to content

Commit 1b7d0c3

Browse files
committed
ci(workflow): 更新后端工作流以调试和简化发布步骤
更新了 `actions/download-artifact` 的版本至 v4,并添加了调试步骤以列出下载的工件。同时简化了发布步骤,使用通配符 `artifacts/**` 来包含所有工件,减少手动指定文件的繁琐。
1 parent 0196d51 commit 1b7d0c3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/backend.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,16 @@ jobs:
133133
- uses: actions/checkout@v4
134134

135135
- name: Download all artifacts
136-
uses: actions/download-artifact@v3
136+
uses: actions/download-artifact@v4
137137
with:
138138
path: artifacts
139139

140+
- name: List downloaded artifacts (for debugging)
141+
run: ls -R artifacts
142+
140143
- name: Create Release
141144
uses: softprops/action-gh-release@v1
142145
with:
143-
files: |
144-
artifacts/backend-linux-amd64/backend-linux-amd64
145-
artifacts/backend-windows-amd64.exe/backend-windows-amd64.exe
146+
files: artifacts/**
146147
draft: false
147148
prerelease: false

0 commit comments

Comments
 (0)