GitHub
Last updated
Was this helpful?
Last updated
Was this helpful?
The GitHub Publisher uploads your artifacts to GitHub Releases, which allows your users to download the files straight from your repository. If your repository is open-source, you can use to get a free hosted update service (see Auto updating from GitHub below).
To use @electron-forge/publisher-github
, add it to the publishers
array in your :
We recommend using the process.env.GITHUB_TOKEN
environment variable to authenticate the GitHub Publisher. This token requires write permissions to your repository's contents to create new releases.
You can use this target to publish to GitHub Enterprise using the host configuration options of octokitOptions
. Check out the configuration options linked above.
Configuration options are documented in .
See the documentation for more information.
Updating from a GitHub release for a public repository is as simple as adding the module to your app's main process.
If your GitHub release is in a private repository, you should check our guide for alternative solutions.