Skip to content

Commit 20530f0

Browse files
committed
fix: flatten desktop artifacts before release upload
Tauri bundles land in subdirs (dmg/, appimage/, deb/, nsis/, macos/) after merge-multiple download. The release glob expects them at dist/ root. Added a flatten step to move them before the gh-release action.
1 parent b9ee854 commit 20530f0

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,16 @@ jobs:
307307
path: dist
308308
merge-multiple: true
309309

310+
- name: Flatten desktop artifacts
311+
shell: bash
312+
run: |
313+
# Desktop bundles land in subdirs (dmg/, appimage/, deb/, nsis/, macos/).
314+
# Move them to dist/ root so the release glob picks them up.
315+
find dist -mindepth 2 -type f \( -name '*.dmg' -o -name '*.AppImage' -o -name '*.AppImage.tar.gz' -o -name '*.AppImage.tar.gz.sig' -o -name '*.deb' -o -name '*-setup.exe' -o -name '*.nsis.zip' -o -name '*.nsis.zip.sig' -o -name '*.app.tar.gz' -o -name '*.app.tar.gz.sig' \) -exec mv {} dist/ \;
316+
310317
- name: List release artifacts
311318
shell: bash
312-
run: find dist -maxdepth 2 -type f | sort
319+
run: find dist -maxdepth 1 -type f | sort
313320

314321
- name: Create GitHub release
315322
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836

0 commit comments

Comments
 (0)