From a8d317bbdb4da2860be280da0a8928f7fdb31da9 Mon Sep 17 00:00:00 2001 From: Cmochance <3216202644@qq.com> Date: Fri, 22 May 2026 03:22:16 +0800 Subject: [PATCH] fix(ci): use recursive glob so Linux release assets attach to tag `tauri build --target x86_64-unknown-linux-gnu` writes `.deb` to a `deb/` subdir and `.AppImage` to an `appimage/` subdir. `actions/upload-artifact@v4` preserves that nesting, so after `download-artifact`, the Linux files live at `artifacts/codex-switch-linux-x86_64/deb/*.deb` and `.../appimage/*.AppImage`. The previous one-level glob `artifacts/codex-switch-linux-x86_64/*` did not match anything; v1.5.11 tag build logged `Pattern '...' does not match any files.` and the Linux artifacts were silently missing from the release while the build job reported success. Switch all four platform globs to `**/*` so they recurse. macOS/Windows already flatten to a single level, so the change is a no-op for them. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 43ac473..58daffd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -182,7 +182,7 @@ jobs: draft: true generate_release_notes: true files: | - artifacts/codex-switch-macos-arm64/* - artifacts/codex-switch-macos-x64/* - artifacts/codex-switch-windows-x86_64/* - artifacts/codex-switch-linux-x86_64/* + artifacts/codex-switch-macos-arm64/**/* + artifacts/codex-switch-macos-x64/**/* + artifacts/codex-switch-windows-x86_64/**/* + artifacts/codex-switch-linux-x86_64/**/*