Skip to content

Commit 75017ac

Browse files
committed
ci(signpath): flatten installer paths for SignPath zip globs
1 parent 909758e commit 75017ac

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/build-desktop-platforms.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,27 @@ jobs:
6363
retry ./gradlew :composeApp:packageExe :composeApp:packageMsi
6464
shell: bash
6565

66+
# Flatten .exe + .msi into a single directory so the uploaded artifact
67+
# zip contains them at the root (no `exe/` and `msi/` subdirectories).
68+
# SignPath's artifact-configuration XML uses simple `*.exe` / `*.msi`
69+
# globs at zip root; nested paths cause "Expected path to match exactly
70+
# 1 item, but found 0" because upload-artifact@v4 strips the longest
71+
# common prefix only, so multi-source paths preserve their tail dirs.
72+
- name: Stage Windows installers for upload
73+
run: |
74+
set -euo pipefail
75+
mkdir -p windows-staging
76+
cp composeApp/build/compose/binaries/main/exe/*.exe windows-staging/
77+
cp composeApp/build/compose/binaries/main/msi/*.msi windows-staging/
78+
ls -la windows-staging/
79+
shell: bash
80+
6681
- name: Upload Windows installers
6782
id: upload-windows
6883
uses: actions/upload-artifact@v4
6984
with:
7085
name: windows-installers
71-
path: |
72-
composeApp/build/compose/binaries/main/exe/*.exe
73-
composeApp/build/compose/binaries/main/msi/*.msi
86+
path: windows-staging/*
7487
if-no-files-found: error
7588
retention-days: 30
7689
compression-level: 6

0 commit comments

Comments
 (0)