fix(ci): use recursive glob so Linux release assets attach to tag#46
Open
Cmochance wants to merge 1 commit into
Open
fix(ci): use recursive glob so Linux release assets attach to tag#46Cmochance wants to merge 1 commit into
Cmochance wants to merge 1 commit into
Conversation
`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.
Owner
Author
用户行动项
已自动处理
不会影响
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
files:globs from<dir>/*to<dir>/**/*so nested Linux artifacts attach to tag releases.Why
tauri build --target x86_64-unknown-linux-gnuwrites outputs intobundle/deb/andbundle/appimage/subdirs.actions/upload-artifact@v4preserves that nesting, so afterdownload-artifactthe files land at:The previous one-level glob did not match them. v1.5.11's tag run #26227156880 logged:
So the Linux build job reported success but the assets never reached the release — v1.5.11 shipped without Linux assets even though the artifacts were sitting in the run.
(v1.5.11's missing assets have already been backfilled manually using the still-cached artifact; this PR prevents recurrence.)
Test plan
*_amd64.deband*_amd64.AppImagealongside the existing macOS/Windows assets