Skip to content
globe

GitHub Action

Publish Firefox Add-on

v1.0.5 Latest version

Publish Firefox Add-on

globe

Publish Firefox Add-on

GitHub action for publishing extension to Firefox Add-on

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Publish Firefox Add-on

uses: wdzeng/firefox-addon@v1.0.5

Learn more about this action in wdzeng/firefox-addon

Choose a version

Firefox Addon

version license

This action publishes your Firefox add-on to Firefox Addons using the addons.mozilla.org API v5.

This action can only publish new version of an existing add-on. Publishing a new add-on is not supported.

Prerequisites

Followings items are required before publishing an add-on:

  • An xpi (zip) file to be uploaded.
  • A JWT issuer and secret. If you do not have a JWT issuer or secret, go here to generate an API credential.

Usage

All options are required unless otherwise noted.

  • addon-guid: add-on's GUID; this value should be the value at browser_specific_settings.gecko.id in manifest.json; it may be an email.
  • xpi-path: path to the xpi (zip) file of your add-on generated in the previous workflow steps; must be end with one of .zip, .xpi, or .crx.
  • license: (optional) add-on's license slug.
  • approval-notes: (optional): a secret text to Mozilla reviewers.
  • release-notes: (optional) add-on's release note; this must be a valid JSON string (e.g. {"en-US":"foo"}).
  • self-hosted (optional) whether the add-on should be self-hosted; default false.
  • jwt-issuer: your jwt issuer.
  • jwt-secret: your jwt secret.

Example workflow:

steps:
  - uses: wdzeng/firefox-addon@v1
    with:
      addon-guid: your-addon's-guid
      xpi-path: your-addon.zip
      self-hosted: false
      jwt-issuer: ${{ secrets.FIREFOX_JWT_ISSUER }}
      jwt-secret: ${{ secrets.FIREFOX_JWT_SECRET }}

References

Sister Actions