forge/packages/publisher/s3
George Xu ccf6063258
v7.3.1
2024-03-20 09:22:15 -07:00
..
src
README.md
package.json v7.3.1 2024-03-20 09:22:15 -07:00

README.md

publisher-s3

@electron-forge/publisher-s3 publishes all your artifacts to an Amazon S3 bucket where users will be able to download them.

By default, all files are positioned at the following key:

{config.folder || appVersion}/{artifactName}

Configuration options are documented in PublisherS3Config.

module.exports = {
  // ...
  publishers: [
    {
      name: '@electron-forge/publisher-s3',
      config: {
        bucket: 'my-bucket',
        public: true
      }
    }
  ]
};

If you run publish twice with the same version on the same platform, it is possible for your old artifacts to get overwritten in S3. It is your responsibility to ensure that you don't overwrite your own releases.

Authentication

It is recommended to follow the Amazon AWS guide and set either a shared credentials guide or the proper environment variables. However, if that is not possible, the publisher config allows the setting of the accessKeyId and secretAccessKey configuration options.