-
-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (39 loc) · 1.21 KB
/
publish-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Publish Firefox Test
on:
pull_request:
workflow_dispatch:
jobs:
publish-firefox-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install npm modules
run: npm ci
- name: Build
run: npm run build-firefox
# - name: Download zip archive
# uses: actions/download-artifact@v4
# with:
# name: firefox.zip
- name: Sign
env:
WEB_EXT_API_KEY: ${{ vars.FIREFOX_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.FIREFOX_API_SECRET }}
run: npx web-ext sign --source-dir=./dist/firefox --apiSecret= WEB_EXT_API_SECRET
- name: Publish
uses: trmcnvn/firefox-addon@v1
with:
# uuid is only necessary when updating an existing addon,
# omitting it will create a new addon
uuid: TBD
xpi: web-ext-artifacts/my-addon.xpi
manifest: dist/firefox/manifest.json
api-key: ${{ vars.FIREFOX_API_KEY }}
api-secret: ${{ secrets.FIREFOX_API_SECRET }}