Error: Release must be a draft
See original GitHub issueHey there,
I’m testing out deployments for my application. The first deployment works, but subsequent deployments all fail with Error: Release must be a draft
.
For both of these builds, all I did was push a tag. I am not creating any release drafts myself, I am letting electron-builder
take care of that. This process works for the first build, but fails after that. If I delete all existing releases, it works again for a single build.
Thanks!
Issue Analytics
- State:
- Created 7 years ago
- Comments:17 (9 by maintainers)
Top Results From Across the Web
Only releases with status draft may be created on draft app ...
I'm trying to publish to PlayStore Internal track. ... [!] Google Api Error: badRequest: Only releases with status draft may be created on...
Read more >Only releases with status draft may be created on draft app
The app is intended only for internal testing and it will never be released to the public. I assume that means it will...
Read more >Fastlane: Only releases with status draft may be created on ...
Google Api Error: Invalid request - Only releases with status draft may be created on draft app. You must create an Alpha channel...
Read more >Only releases with status draft may be created on draft app
"Only releases with status draft may be created on draft app" ... Studio and then click the "Distribute" button I get the error...
Read more >PRC: PO: Draft Purchase Orders Rest API Error-ed "You must ...
Oracle Fusion Purchasing Cloud Service - Version 11.13.20.04.0 and later: PRC: PO: Draft Purchase Orders Rest API Error-ed "You must provide ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Btw, once I have everything working, I’d like to contribute to the docs and help clarify the places where I had problems. I’ll open another issue to discuss the changes I plan to make before I open a PR.
I’ve discovered the problem. I wasn’t updating the
version
field of myapp/package.json
. I was only updating the mainpackage.json
. This resulted in my CI logs printing1.0.1
, but the artifacts were built as1.0.0
and being deployed to that release. This also explains theError: Release must be a draft
I was getting; it was attempting to upload artifacts to my already-publishedv1.0.0
release, rather than drafting a new release for thev1.0.1
tag. This seems like an easy mistake to make, so perhapselectron-builder
should throw an error in this case.Also, the tag name did indeed need to be prefixed with
v
. This was the configuration that worked once I fixed myapp/package.json
:v1.0.1
v1.0.1