forge/packages/publisher/bitbucket
George Xu ccf6063258
v7.3.1
2024-03-20 09:22:15 -07:00
..
src refactor: use listr2 for the package, make and publish commands (#3043) 2022-11-03 16:01:45 -07:00
README.md build: lint JS in Markdown (#3251) 2023-06-15 14:24:38 -07:00
package.json v7.3.1 2024-03-20 09:22:15 -07:00

README.md

Electron Forge: publisher-bitbucket

@electron-forge/publisher-bitbucket publishes your artifacts to Bitbucket where users will be able to download them.

This publish target is for Bitbucket Cloud only and will not work with self hosted Bitbucket Server instances.

Configuration options are documented in PublisherBitbucketConfig.

module.exports = {
  // ...
  publishers: [
    {
      name: '@electron-forge/publisher-bitbucket',
      config: {
        repository: {
          owner: 'myusername',
          name: 'myreponame'
        },
        auth: {
          username: 'myusername',
          appPassword: 'mysecretapppassword'
        }
      }
    }
  ]
};

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

# env.sh
BITBUCKET_USERNAME="myusername"
BITBUCKET_APP_PASSWORD="mysecretapppassword"
source env.sh