Bitbucket
caution
This publish target is for Bitbucket Cloud only and will not work with self hosted Bitbucket Server instances.
Full configuration options are documented in PublisherBitbucketConfig
.
Usage
forge.config.js
module.exports = {
// ...
publishers: [
{
name: "@electron-forge/publisher-bitbucket",
config: {
repository: {
owner: "myusername",
name: "myreponame",
},
auth: {
username: process.env.BITBUCKET_USERNAME, // string
appPassword: process.env.BITBUCKET_APP_PASSWORD, // string
},
},
},
],
};
you can (and should) use environment variables for the authentication
env.sh
BITBUCKET_USERNAME="myusername"
BITBUCKET_APP_PASSWORD="mysecretapppassword"
$ source env.sh
info
Your artifacts can be found under the Downloads
tab of your Bitbucket repository.