From 41466cb91772c6b035882004c23a8cde25e94707 Mon Sep 17 00:00:00 2001 From: Samuel K Date: Sun, 17 May 2026 11:58:05 -0500 Subject: [PATCH] fix(ci): flatten downloaded CLI artifacts before desktop build The goreleaser output directory structure (e.g. dist/devsy-linux_linux_amd64_v1/devsy-linux-amd64) is preserved by upload-artifact, causing downloaded CLI binaries to be nested in subdirectories under $RUNNER_TEMP/devsy-bin/. The desktop build steps expect flat paths like devsy-bin/devsy-linux-amd64. Add a flatten step after download that moves all files to the top level of devsy-bin/ and removes the intermediate directories. --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79f648abe..4fb7782eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,6 +101,13 @@ jobs: path: ${{ runner.temp }}/devsy-bin/ merge-multiple: true + - name: flatten CLI artifacts + shell: bash + run: | + BIN_DIR="${{ runner.temp }}/devsy-bin" + find "$BIN_DIR" -mindepth 2 -type f -exec mv {} "$BIN_DIR/" \; + find "$BIN_DIR" -mindepth 1 -type d -delete 2>/dev/null || true + - name: setup CLI binary (unix) if: runner.os != 'Windows' shell: bash