-
Notifications
You must be signed in to change notification settings - Fork 60
42 lines (37 loc) · 1.01 KB
/
_webext-build.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
name: 'Build Extension'
on:
workflow_call:
secrets:
signKey:
required: true
signSecret:
required: true
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "web-ext build"
id: web-ext-build
uses: kewisch/action-web-ext@fe10addf5d5e5ba6b78ffde720dd488a27d10e8c # v1.3
with:
cmd: build
source: .
filename: "{name}-{version}.zip"
- name: "web-ext sign"
id: web-ext-sign
uses: kewisch/action-web-ext@fe10addf5d5e5ba6b78ffde720dd488a27d10e8c # v1.3
with:
cmd: sign
source: ${{ steps.web-ext-build.outputs.target }}
channel: listed
apiKey: ${{ secrets.signKey }}
apiSecret: ${{ secrets.signSecret }}
timeout: 900000
- name: "Upload Artifact"
uses: actions/upload-artifact@master
with:
name: dist
path: web-ext-artifacts