Skip to content

Commit 45e376b

Browse files
committed
更新 GitHub Actions 工作流,简化发布文件名格式,并添加调试步骤以列出下载的工件结构。
1 parent abf975f commit 45e376b

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ jobs:
121121
with:
122122
name: Console-${{ steps.get_version.outputs.VERSION }}-${{ matrix.runtime }}
123123
path: |
124-
Console-${{ steps.get_version.outputs.VERSION }}-${{ matrix.runtime }}.zip
125-
Console-${{ steps.get_version.outputs.VERSION }}-${{ matrix.runtime }}.tar.gz
124+
Console-${{ steps.get_version.outputs.VERSION }}-${{ matrix.runtime }}.*
126125
retention-days: 30
127126

128127
create-release:
@@ -147,17 +146,27 @@ jobs:
147146
with:
148147
path: ./artifacts
149148

149+
- name: List downloaded artifacts (debug)
150+
run: |
151+
echo "=== Artifacts structure ==="
152+
find ./artifacts -type f -name "*.zip" -o -name "*.tar.gz" | sort
153+
echo "=========================="
154+
155+
- name: Prepare release files
156+
run: |
157+
mkdir -p ./release-files
158+
find ./artifacts -name "*.zip" -exec cp {} ./release-files/ \;
159+
find ./artifacts -name "*.tar.gz" -exec cp {} ./release-files/ \;
160+
echo "=== Release files ==="
161+
ls -la ./release-files/
162+
echo "===================="
163+
150164
- name: Create Release
151165
uses: softprops/action-gh-release@v1
152166
with:
153167
name: Release ${{ steps.get_version.outputs.VERSION }}
154168
tag_name: ${{ steps.get_version.outputs.VERSION }}
155-
files: |
156-
artifacts/${{ steps.get_version.outputs.VERSION }}-win-x64/${{ steps.get_version.outputs.VERSION }}-win-x64.zip
157-
artifacts/${{ steps.get_version.outputs.VERSION }}-linux-x64/${{ steps.get_version.outputs.VERSION }}-linux-x64.tar.gz
158-
artifacts/${{ steps.get_version.outputs.VERSION }}-osx-x64/${{ steps.get_version.outputs.VERSION }}-osx-x64.tar.gz
159-
artifacts/${{ steps.get_version.outputs.VERSION }}-linux-arm64/${{ steps.get_version.outputs.VERSION }}-linux-arm64.tar.gz
160-
artifacts/${{ steps.get_version.outputs.VERSION }}-osx-arm64/${{ steps.get_version.outputs.VERSION }}-osx-arm64.tar.gz
169+
files: ./release-files/*
161170
draft: false
162171
prerelease: ${{ github.event.inputs.prerelease == 'true' || false }}
163172
generate_release_notes: true

0 commit comments

Comments
 (0)