-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (50 loc) · 1.67 KB
/
web-ext-sign.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
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Sign (web-ext)
# on:
# push:
# tags:
# - "v*.*.*"
# release:
# types: [published]
jobs:
sign:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build web-ext
id: web-ext-build
uses: kewisch/action-web-ext@v1
with:
cmd: build
source: src
# Signs the extension with Mozilla's web-ext signer
# See https://github.com/mozilla/web-ext#signing-an-extension
- name: Sign web-ext
id: web-ext-sign
uses: kewisch/action-web-ext@v1
with:
cmd: sign
source: ${{ steps.web-ext-build.outputs.target }}
channel: listed # Defaults to "release", but "listed" is more appropriate for browser extensions
apiKey: ${{ secrets.FIREFOX_JWT_ISSUER }}
apiSecret: ${{ secrets.FIREFOX_JWT_SECRET }}
timeout: 900000 # 15 minute timeout to account for potentially slow signing
# Publish the signed extension to a GitHub release
# See https://github.com/softprops/action-gh-release#usage
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ steps.web-ext-sign.outputs.target }}
tag_name: ${{ github.ref }}
release_name: Signed extension for ${{ github.ref }}
body: |
Signed extension for version ${{ github.ref }}
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: ${{ steps.web-ext-sign.outputs.target }}