Create firefox-addon-upload.yml

Automating firefox addon building and uploading
This commit is contained in:
Kenneth Hendricks 2024-10-18 15:14:46 -04:00 committed by GitHub
parent 08ad47a0d9
commit a706c3de27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,39 @@
name: Build and Upload Firefox Extension
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Zip Firefox extension
run: |
zip -r firefox-extension.zip \
assets/* \
js/* \
pub/* \
res/* \
LICENSE \
README.md \
manifest.json
- name: Upload to AMO using JWT Action
uses: Ovea/amo-upload@v2
with:
api_key: ${{ secrets.AMO_API_KEY }}
api_secret: ${{ secrets.AMO_API_SECRET }}
addon_zip: firefox-extension.zip
addon_id: "fmhy-safeguard"
- name: Notify about successful release
run: echo "Firefox extension uploaded successfully!"