Skip to content

Publish Extension to All Stores #9

Publish Extension to All Stores

Publish Extension to All Stores #9

Workflow file for this run

name: Publish Extension to All Stores
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "v20.11.0"
- name: Install dependencies
run: npm install
- name: Build for Chrome and Edge
run: npm run build
- name: Build for Firefox
run: npm run build:firefox
- name: Upload Chrome/Edge Artifact
uses: actions/upload-artifact@v4
with:
name: chrome-edge-package
path: market_packages/target.zip
- name: Upload Firefox XPI Artifact
uses: actions/upload-artifact@v4
with:
name: firefox-xpi-package
path: market_packages/target.firefox.zip
- name: Upload Firefox Source Artifact
uses: actions/upload-artifact@v4
with:
name: firefox-source-package
path: market_packages/target.src.zip
publish-chrome:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Chrome/Edge Artifact
uses: actions/download-artifact@v4
with:
name: chrome-edge-package
- name: Upload to Chrome Web Store
uses: mnao305/[email protected]
with:
file-path: target.zip
extension-id: dkdhhcbjijekmneelocdllcldcpmekmm
client-id: ${{ secrets.CHROME_CLIENT_ID }}
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
publish: true
publish-edge:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Chrome/Edge Artifact
uses: actions/download-artifact@v4
with:
name: chrome-edge-package
- name: Upload to Edge Add-on Store
uses: wdzeng/edge-addon@v2
with:
zip-path: target.zip
product-id: 2a99ae83-5ec8-4ad2-aa63-9a276fc708ce
client-id: ${{ secrets.EDGE_CLIENT_ID }}
api-key: ${{ secrets.EDGE_API_KEY }}
upload-only: false
publish-firefox:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download Firefox XPI Artifact
uses: actions/download-artifact@v4
with:
name: firefox-xpi-package
- name: Download Firefox Source Artifact
uses: actions/download-artifact@v4
with:
name: firefox-source-package
- name: Upload to Firefox Add-on Store
uses: wdzeng/[email protected]
with:
addon-guid: "{a8cf72f7-09b7-4cd4-9aaa-7a023bf09916}"
xpi-path: target.firefox.zip
source-file-path: target.src.zip
compatibility: firefox, android
jwt-issuer: ${{ secrets.FIREFOX_JWD_ISSUER }}
jwt-secret: ${{ secrets.FIREFOX_JWD_SECRET }}