File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Upload to Chrome Web Store
2
+ description : Upload extension zip from dist/ directory to Chrome Web Store
3
+
4
+ inputs :
5
+ CHROME_EXT_ID :
6
+ description : Chrome Web Store extension ID
7
+ required : true
8
+ CHROME_CLIENT_ID :
9
+ description : Client ID for Chrome Web Store
10
+ required : true
11
+ CHROME_CLIENT_SECRET :
12
+ description : Client secret for Chrome Web Store
13
+ required : true
14
+ CHROME_REFRESH_TOKEN :
15
+ description : Refresh token for Chrome Web Store
16
+ required : true
17
+
18
+ runs :
19
+ using : composite
20
+
21
+ steps :
22
+ - name : Setup Node
23
+ uses : actions/setup-node@v4
24
+ with : { node-version-file: .nvmrc }
25
+
26
+ - name : Get extension path
27
+ id : path
28
+ shell : bash
29
+ run : |
30
+ CHROME_ZIP=$(find dist -type f -name "*chrome*.zip")
31
+ echo "CHROME_ZIP=$CHROME_ZIP" >> $GITHUB_OUTPUT
32
+
33
+ - name : Upload to Chrome Web Store
34
+ run : npx chrome-webstore-upload-cli@3 upload --source ${{ steps.path.outputs.chrome }}
35
+ shell : bash
36
+ env :
37
+ EXTENSION_ID : ${{ inputs.CHROME_EXT_ID }}
38
+ CLIENT_ID : ${{ inputs.CHROME_CLIENT_ID }}
39
+ CLIENT_SECRET : ${{ inputs.CHROME_CLIENT_SECRET }}
40
+ REFRESH_TOKEN : ${{ inputs.CHROME_REFRESH_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : Upload to Chrome Web Store
2
+ description : Upload extension zip from dist/ directory to Chrome Web Store
3
+
4
+ inputs :
5
+ CHROME_EXT_ID :
6
+ description : Chrome Web Store extension ID
7
+ required : true
8
+ CHROME_CLIENT_ID :
9
+ description : Client ID for Chrome Web Store
10
+ required : true
11
+ CHROME_CLIENT_SECRET :
12
+ description : Client secret for Chrome Web Store
13
+ required : true
14
+ CHROME_REFRESH_TOKEN :
15
+ description : Refresh token for Chrome Web Store
16
+ required : true
17
+
18
+ runs :
19
+ using : composite
20
+
21
+ steps :
22
+ - name : Setup Node
23
+ uses : actions/setup-node@v4
24
+ with : { node-version-file: .nvmrc }
25
+
26
+ - name : Get extension path
27
+ id : path
28
+ shell : bash
29
+ run : |
30
+ FIREFOX_ZIP=$(find dist -type f -name "*firefox*.zip")
31
+ echo "FIREFOX_ZIP=$FIREFOX_ZIP" >> $GITHUB_OUTPUT
32
+
33
+ - name : Get source code
34
+ shell : bash
35
+ run : git archive --output source.zip HEAD
36
+
37
+ # TODO: figure out how to specify build zip file
38
+ - name : Upload to Firefox Addons
39
+ run : npx web-ext@8 sign --channel listed --upload-source-code ./source.zip
40
+ shell : bash
41
+ working-directory : artifact
42
+ env :
43
+ WEB_EXT_API_KEY : ${{ inputs.FIREFOX_API_KEY }}
44
+ WEB_EXT_API_SECRET : ${{ inputs.FIREFOX_API_SECRET }}
You can’t perform that action at this time.
0 commit comments