File tree 2 files changed +51
-2
lines changed
2 files changed +51
-2
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ jobs:
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- name : " Checkout"
15
- uses : actions/checkout@v3
15
+ uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0
18
18
19
19
- name : " Setup node"
20
- uses : actions/setup-node@v3
20
+ uses : actions/setup-node@v4
21
21
with :
22
22
node-version : " latest"
23
23
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : " Publish"
4
+ on :
5
+ release :
6
+ types : [published]
7
+ jobs :
8
+ publish :
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ contents : write
12
+ steps :
13
+ - name : " Checkout"
14
+ uses : actions/checkout@v4
15
+
16
+ - name : " Setup Node"
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : latest
20
+
21
+ - name : " npm ci"
22
+ run : npm ci
23
+
24
+ - name : " build"
25
+ run : npm run build
26
+
27
+ - name : " web-ext build"
28
+ id : web-ext-build
29
+ uses : kewisch/action-web-ext@v1
30
+ with :
31
+ cmd : build
32
+ source : src
33
+
34
+ - name : " web-ext sign"
35
+ uses : kewisch/action-web-ext@v1
36
+ with :
37
+ cmd : sign
38
+ source : ${{ steps.web-ext-build.outputs.target }}
39
+ channel : listed
40
+ apiUrlPrefix : " https://addons.thunderbird.net/api/v4"
41
+ apiKey : ${{ secrets.AMO_SIGN_KEY }}
42
+ apiSecret : ${{ secrets.AMO_SIGN_SECRET }}
43
+
44
+ - name : " Attach release assets"
45
+ env :
46
+ GH_TOKEN : ${{ github.token }}
47
+ run : |
48
+ gh release upload ${{ github.event.release.tag_name }} \
49
+ web-ext-artifacts/*.zip
You can’t perform that action at this time.
0 commit comments