Note
to be able to perform auto-updates you will need a code signed app, for this purpose you will need to configure it by yourself, so check the electron-builder and action-electron-builder docs please to get know how to do this.
Warning
to be able to perform releases from GitHub Actions, your repo must have the necessary permissions, so:
- Go to
/settings/actionsin your repo and:- in the
Actions permissionssection, selectAllow all actions and reusable workflowsoption - in the
Workflow permissionssection, selectRead and write permissionsoption - Save the changes
- in the
To release your app on a GitHub release with Windows, Mac and Linux binaries, you can perform the following commands:
git pull
pnpm make:releaseThen, enter the new version of your app, so it will produce the following binaries in a draft release from the action:
Windows→zip (portable),.exeMac→.zip (app),.dmgLinux→AppImage,freebsd,pacman,rpm,deb
In this process, the action will be triggered and the previous command will open the releases and actions page in your browser. When the action is finished, you can click in the releases page and refresh it to see the draft release with the binaries, so you can edit it and release it for your users.