-
-
Notifications
You must be signed in to change notification settings - Fork 13
43 lines (41 loc) · 1.32 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
42
43
name: Publish Firefox Test
on:
pull_request:
workflow_dispatch:
jobs:
publish-firefox-extension:
runs-on: ubuntu-latest
outputs:
xpi_filepath: ${{ steps.sign.outputs.xpi_filepath }}
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
id: sign
run: |
npx web-ext sign --source-dir=./dist/firefox --api-key="${{ vars.FIREFOX_API_KEY }}" --api-secret="${{ secrets.FIREFOX_API_SECRET }}"
echo "xpi_filepath=$(ls web-ext-artifacts/*.xpi)" >> "$GITHUB_OUTPUT"
- 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: ${{ steps.sign.outputs.xpi_filepath }}
manifest: dist/firefox/manifest.json
api-key: ${{ vars.FIREFOX_API_KEY }}
api-secret: ${{ secrets.FIREFOX_API_SECRET }}