Commit 4d2391a
authored
Handle immutable desktop releases (#41)
Fixes the desktop release asset upload path for repos with immutable
releases enabled.
What changed:
- If no GitHub Release exists, keep creating the release with DMG assets
in the initial create path.
- If a draft release exists, upload the DMG assets and publish it.
- If a published immutable release already exists, fail with a clear
error instead of trying an impossible asset upload.
This prevents the confusing HTTP 422 immutable release failure and
supports a safe draft-release flow.1 parent 25f623a commit 4d2391a
1 file changed
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
161 | 172 | | |
| 173 | + | |
| 174 | + | |
0 commit comments