Buld & Publish (Firefox) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Buld & Publish (Firefox) | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Build the extension | |
run: npm run build:ff | |
- name: Fix firefox manifest | |
run: sed -i 's/background\/scripts\.js/background\/service_worker\.js/g' dist/firefox/manifest.json | |
- name: Put the extension into a zip file | |
run: zip -r release_firefox.zip dist/firefox | |
- name: Upload to Mozilla Addons | |
uses: trmcnvn/firefox-addon@v1 | |
with: | |
#uuid: '{}' | |
api-key: ${{ secrets.FIREFOX_KEY }} | |
api-secret: ${{ secrets.FIREFOX_SECRET }} | |
manifest: dist/firefox/manifest.json | |
xpi: release_firefox.zip |