Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.29 KB

bitbucket.md

File metadata and controls

46 lines (37 loc) · 1.29 KB

Bitbucket

The Bitbucket publish target allows you to publish your artifacts directly to Bitbucket where users will be able to download them.

{% hint style="warning" %} This publish target is for Bitbucket Cloud only and will not work with self hosted Bitbucket Server instances. {% endhint %}

Installation

npm install --save-dev @electron-forge/publisher-bitbucket

Usage

To use @electron-forge/publisher-bitbucket, add it to the publishers array in your Forge configuration:

{% code title="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
        }
      }
    }
  ]
};

{% endcode %}

Full configuration options are documented in PublisherBitbucketConfig.

{% hint style="info" %} Your artifacts can be found under the Downloads tab of your Bitbucket repository. {% endhint %}