question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitHubPublisher does not work with releaseType=release

See original GitHub issue

Using packageType=release for GitHubPublisher seem to be not working and latest* files for electron-updater are not getting uploaded.

Debugging through the code it looks like GitHubPublisher is getting instantiated twice, and the second time around info is missing releaseType=release which is causing the conflict. Using the deprecated --prerelease false --draft false command line options this does not happen.

electron-builder 19.49.0
No native production dependencies
Packaging for darwin x64 using electron 1.7.9 to dist/mac
Signing app (identity: B8D7F12C26390E7F3A1AD613A5CC18270D505DFC Developer ID Application: Lutz Roeder (W72HKFW6P5))
Building DMG
Building macOS zip
No native production dependencies
Packaging for linux x64 using electron 1.7.9 to dist/linux-unpacked
Building AppImage for arch x64
No native production dependencies
Packaging for win32 x64 using electron 1.7.9 to dist/win-unpacked
Publishing to Github (owner: lutzroeder, project: netron, version: 1.1.2)
Building deb
Release with tag 1.1.2 doesn't exist, creating one
[====================] 100% 0.0s | Netron-1.1.2-x86_64.AppImage to GitHub
[====================] 100% 0.0s | Netron-1.1.2.dmg to GitHub
Building nsis installer (x64)
[====================] 100% 0.0s | Netron-Setup-1.1.2.exe to GitHub
[====================] 100% 0.0s | Netron_1.1.2_amd64.deb to GitHub
[====================] 100% 0.0s | Netron-1.1.2-mac.zip to GitHub
Publishing to Github (owner: lutzroeder, project: netron, version: 1.1.2)
⚠️  Release with tag 1.1.2 already exists with type "release", but current release type is "draft"
⚠️  Artifact latest-mac.json is not published: Release with tag 1.1.2 already exists with type "release", but current release type is "draft"
⚠️  Artifact latest-mac.yml is not published: Release with tag 1.1.2 already exists with type "release", but current release type is "draft"
⚠️  Artifact latest.yml is not published: Release with tag 1.1.2 already exists with type "release", but current release type is "draft"
⚠️  Artifact latest-linux.yml is not published: Release with tag 1.1.2 already exists with type "release", but current release type is "draft"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
f-r00tcommented, Jul 15, 2019

Make sure there is not already a published Release for the version your trying to publish. It needs to be either non-existant or a draft.

4reactions
artemvcommented, Jan 17, 2020

@f-r00t not really - if you specify releaseType=release (see title of this issue and docs) electron-builder will publish to existing “release” tag. Working setup: https://github.com/artemv/mts-detalization-parser. There

  • a tag is created by semantic-release
  • then linux binaries are added to that tag by electron-builder
  • then windows binaries are added to that tag by electron-builder
Read more comments on GitHub >

github_iconTop Results From Across the Web

Publishing a release from GitHub actions does not publish to ...
The workaround I found is to manually edit the just-published release, uncheck and check the "Publish to Marketplace" option and save the release....
Read more >
Releases published when author is `github-actions` won't fire ...
I guess the problem is that when now publishing a release (again, with a non-existing tag), GitHub in the background somehow checks the...
Read more >
Managing releases in a repository - GitHub Docs
To the right of the list of files, click Releases. ... Click Draft a new release. ... Click Choose a tag, type a...
Read more >
publishing a release does not generate a ... - GitHub
I have 'watched' this repository for releases, but I have not been getting notifications when releases have been added to this repository.
Read more >
Publish does not create a release on github · Issue #2168
Windows 10. Last Known Working Electron Forge version:: none. Expected Behavior. Electron Forge creates a new release on my github repo ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found