From 60eb785eccc89efdea2d62df65706d97fba4b04c Mon Sep 17 00:00:00 2001 From: Nathan OGER Date: Sun, 20 Sep 2026 18:22:00 +0200 Subject: [PATCH] ci(release): flatten the manual-run installer artifact --- .github/workflows/release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2feaf8a..72de613 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,6 +62,17 @@ jobs: releaseDraft: true prerelease: false + # upload-artifact keeps every directory between the workspace root and + # the file, which would bury the installer four levels deep inside the + # download. Copying it out first puts it at the root of the archive. + - name: Collect the installer + if: github.ref_type != 'tag' + shell: bash + run: | + mkdir -p installers + find target \( -name '*.dmg' -o -name '*-setup.exe' \) \ + -path '*/release/bundle/*' -exec cp {} installers/ \; + # A GitHub release is the only place tauri-action uploads to, so without # this a manual run would build both installers and throw them away. - name: Keep the bundles from a manual run @@ -70,6 +81,4 @@ jobs: with: name: zaapy-${{ matrix.slug }} if-no-files-found: error - path: | - target/**/release/bundle/dmg/*.dmg - target/**/release/bundle/nsis/*-setup.exe + path: installers/*