Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/*
Loading