mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Create firefox-addon-upload.yml
Automating firefox addon building and uploading
This commit is contained in:
parent
08ad47a0d9
commit
a706c3de27
1 changed files with 39 additions and 0 deletions
39
.github/workflows/firefox-addon-upload.yml
vendored
Normal file
39
.github/workflows/firefox-addon-upload.yml
vendored
Normal 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!"
|
||||
Loading…
Reference in a new issue