1
- name : CI
1
+ name : Deploy extension to stores
2
2
3
- on :
4
- release :
5
- types : [published]
3
+ on : workflow_dispatch
6
4
7
5
jobs :
8
- Firefox :
9
- runs-on : ubuntu-latest
6
+ build-all :
7
+ uses : ./.github/workflows/build.yml
8
+
9
+ firefox :
10
+ needs : build-all
11
+ runs-on : ubuntu-22.04
10
12
11
13
steps :
12
- - uses : actions/checkout@v2
14
+ - uses : actions/checkout@v4
13
15
14
- - name : Find and Replace
15
- uses : jacobtomlinson/gha-find-replace@v1
16
+ - uses : actions/download-artifact@v4
16
17
with :
17
- find : ' "incognito": "split",'
18
- replace : " "
19
- include : " packages/syncwatch-extension/dist/manifest.json"
18
+ name : build-ci
19
+ path : ./build-ci
20
20
21
21
- name : Build Extension for Firefox
22
22
id : web-ext-build
23
23
uses : kewisch/action-web-ext@v1
24
24
with :
25
25
cmd : build
26
- source : ./packages/syncwatch-extension/dist
26
+ source : ./build-ci/firefox-mv2
27
27
28
28
- name : " Sign & publish"
29
29
id : web-ext-sign
@@ -36,22 +36,27 @@ jobs:
36
36
apiSecret : ${{ secrets.FIREFOX_CLIENT_SECRET }}
37
37
38
38
- name : Drop artifacts
39
- uses : actions/upload-artifact@v2
39
+ uses : actions/upload-artifact@v4
40
40
with :
41
41
name : " Firefox Artefacts"
42
42
path : ${{ steps.web-ext-build.outputs.target }}
43
43
44
- Chrome :
45
- runs-on : ubuntu-latest
46
-
44
+ chrome :
45
+ needs : build-all
46
+ runs-on : ubuntu-22.04
47
47
steps :
48
- - uses : actions/checkout@v2
48
+ - uses : actions/checkout@v4
49
+
50
+ - uses : actions/download-artifact@v4
51
+ with :
52
+ name : build-ci
53
+ path : ./build-ci
49
54
50
55
- name : Pack extension
51
56
uses :
TheDoctor0/[email protected]
52
57
with :
53
58
filename : ./SyncWatchExtension.zip
54
- path : ./packages/syncwatch-extension/dist
59
+ path : ./build-ci/chrome-mv3
55
60
56
61
- name : Publish to Chrome Webstore
57
62
uses : trmcnvn/chrome-addon@v2
72
77
draft : false
73
78
74
79
- name : Drop artifacts
75
- uses : actions/upload-artifact@v2
80
+ uses : actions/upload-artifact@v4
76
81
with :
77
82
name : " Chrome Artifacts"
78
83
path : ./SyncWatchExtension.zip
0 commit comments