mirror of
https://github.com/fmhy/FMHY-SafeGuard.git
synced 2026-03-11 08:55:40 +00:00
Update firefox-addon-upload.yml
This commit is contained in:
parent
a706c3de27
commit
31b4e644f7
1 changed files with 12 additions and 7 deletions
19
.github/workflows/firefox-addon-upload.yml
vendored
19
.github/workflows/firefox-addon-upload.yml
vendored
|
|
@ -16,6 +16,9 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install web-ext
|
||||
run: npm install --global web-ext
|
||||
|
||||
- name: Zip Firefox extension
|
||||
run: |
|
||||
zip -r firefox-extension.zip \
|
||||
|
|
@ -27,13 +30,15 @@ jobs:
|
|||
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: Sign and Upload extension to AMO
|
||||
run: |
|
||||
web-ext sign --source-dir . \
|
||||
--api-key ${{ secrets.AMO_API_KEY }} \
|
||||
--api-secret ${{ secrets.AMO_API_SECRET }} \
|
||||
--id "fmhy-safeguard"
|
||||
env:
|
||||
AMO_API_KEY: ${{ secrets.AMO_API_KEY }}
|
||||
AMO_API_SECRET: ${{ secrets.AMO_API_SECRET }}
|
||||
|
||||
- name: Notify about successful release
|
||||
run: echo "Firefox extension uploaded successfully!"
|
||||
|
|
|
|||
Loading…
Reference in a new issue