Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 1.32 KB

bitbucket.md

File metadata and controls

56 lines (46 loc) · 1.32 KB
description
The Bitbucket publish target allows you to publish your artifacts directly to Bitbucket where users will be able to download them.

Bitbucket

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

Full configuration options are documented in PublisherBitbucketConfig.

Usage

{% 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 %}

you can (and should) use environment variables for the authentication

{% code title="env.sh" %}

BITBUCKET_USERNAME="myusername"
BITBUCKET_APP_PASSWORD="mysecretapppassword"

{% endcode %}

$ source env.sh

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