Commit 17cddb5
authored
fix(release): publish as draft until desktop assets upload (#802)
The release flow previously promoted a tag to "latest" the moment the CLI
publish step completed (via `gh release create --latest`). The desktop
build then ran for another 15-20 min before attaching DMG/zip/exe/AppImage/
deb/rpm/latest*.yml, leaving `/releases/latest/download/<desktop-asset>`
to 404 for any user hitting it during that window.
Create the release as a draft instead, and flip `--draft=false` as the
final step of publish-desktop.yml once every asset is uploaded. GitHub
auto-promotes the undrafted release to "latest" based on semver. While in
draft, `/releases/latest/...` continues to redirect to the previous
release, so install.sh and the download links in release notes keep
working.
Also harden the upload loop: drop the `|| true` that was swallowing
upload failures, switch to `set -euo pipefail` and process substitution
so a failed `gh release upload` aborts the job instead of silently
leaving the release short an asset.1 parent efb271c commit 17cddb5
2 files changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
| |||
211 | 214 | | |
212 | 215 | | |
213 | 216 | | |
| 217 | + | |
214 | 218 | | |
215 | 219 | | |
216 | 220 | | |
217 | 221 | | |
218 | | - | |
219 | | - | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
0 commit comments