Commit 201e7cd
authored
ci(release): Merge artifacts for Craft release discovery (#1249)
## Problem
Craft requires a single artifact named with the commit SHA containing
all release files at the root level. The current workflow uploads
separate artifacts (`built-packages`, `spotlight-binaries`,
`electron-binaries`) with custom names, causing Craft to fail with:
```
Error: Can't find any artifacts for revision "aee365d..."
```
Additionally, the `electron-mac` job may still be running when Craft
attempts to publish, causing the `electron-binaries` artifact to be
missing.
## Solution
Add a `merge-artifacts` job that:
1. Waits for both `build` and `electron-mac` jobs to complete
2. Downloads and flattens all artifacts using `merge-multiple: true`
3. Uploads them as a single artifact named with the commit SHA
## Changes
- **build.yml**: Add `merge-artifacts` job at the end of the workflow
- **.craft.yml**: Update `statusProvider` context to `Merge Artifacts`
and update `requireNames` to match flattened file patterns1 parent 2cda3f3 commit 201e7cd
2 files changed
+22
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
0 commit comments