mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
ci: Add debug logging to identify artifact packaging issue
This commit is contained in:
21
.github/workflows/release.yml
vendored
21
.github/workflows/release.yml
vendored
@@ -428,13 +428,32 @@ EOF
|
|||||||
path: artifacts
|
path: artifacts
|
||||||
pattern: release-*
|
pattern: release-*
|
||||||
|
|
||||||
|
- name: List artifacts structure
|
||||||
|
run: |
|
||||||
|
echo "🔍 Artifact directory structure:"
|
||||||
|
find artifacts -type f -o -type d | sort
|
||||||
|
echo ""
|
||||||
|
echo "📊 Files found:"
|
||||||
|
find artifacts -type f -exec ls -lh {} \;
|
||||||
|
echo ""
|
||||||
|
echo "📁 Full tree:"
|
||||||
|
tree artifacts || find artifacts -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
|
||||||
|
|
||||||
|
- name: Flatten artifacts for release
|
||||||
|
run: |
|
||||||
|
echo "📦 Organizing artifacts..."
|
||||||
|
mkdir -p release-files
|
||||||
|
find artifacts -type f \( -name "*.exe" -o -name "*.deb" -o -name "*.dmg" \) -exec cp {} release-files/ \;
|
||||||
|
echo "✅ Files ready for release:"
|
||||||
|
ls -lh release-files/
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ github.ref_name }}
|
tag: ${{ github.ref_name }}
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: ${{ github.event.inputs.is_prerelease == 'true' }}
|
prerelease: ${{ github.event.inputs.is_prerelease == 'true' }}
|
||||||
artifacts: artifacts/**/*
|
artifacts: release-files/*
|
||||||
body: |
|
body: |
|
||||||
## Release ${{ needs.prepare.outputs.version }}
|
## Release ${{ needs.prepare.outputs.version }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user