4
4
5
5
# FILE GENERATED WITH: npx ghat fregante/ghatemplates/webext
6
6
# SOURCE: https://github.com/fregante/ghatemplates
7
- # OPTIONS: {"exclude":["on.schedule"],"set":[" jobs.Submit.strategy.matrix.command=[\"Chrome\"] "]}
7
+ # OPTIONS: {"exclude":["jobs.Firefox "]}
8
8
9
9
name : Release
10
10
on :
@@ -15,10 +15,10 @@ jobs:
15
15
created : ${{ env.DAILY_VERSION_CREATED }}
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v3
19
- - uses : actions/setup-node@v3
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-node@v4
20
20
with :
21
- node-version-file : .nvmrc
21
+ node-version-file : package.json
22
22
cache : npm
23
23
- run : npm ci
24
24
- name : Test and build
30
30
run : npx dot-json@1 "$DIRECTORY/manifest.json" version "$DAILY_VERSION"
31
31
- name : Ready for "submit" jobs
32
32
if : env.DAILY_VERSION_CREATED
33
- uses : actions/upload-artifact@v3
33
+ uses : actions/upload-artifact@v4
34
34
with :
35
35
path : ${{ env.DIRECTORY }}
36
36
- name : Create release
@@ -42,29 +42,16 @@ jobs:
42
42
FILENAME="$PROJECT_NAME-$DAILY_VERSION-for-local-testing-only.zip"
43
43
zip -r "$FILENAME" ./*
44
44
gh release create "$DAILY_VERSION" --generate-notes "$FILENAME"
45
- Submit :
46
- needs : Version
45
+ Chrome :
47
46
if : needs.Version.outputs.created
48
- strategy :
49
- fail-fast : false
50
- matrix :
51
- command :
52
- - Chrome
53
- environment : ${{ matrix.command }}
47
+ needs : Version
48
+ name : Submit (Chrome)
49
+ environment : Chrome
54
50
runs-on : ubuntu-latest
55
51
steps :
56
- - uses : actions/download-artifact@v3
57
- - name : Submit to Mozilla
58
- if : matrix.command == 'Firefox'
59
- working-directory : artifact
60
- run : npx web-ext-submit@7
61
- env :
62
- WEB_EXT_API_KEY : ${{ secrets.WEB_EXT_API_KEY }}
63
- WEB_EXT_API_SECRET : ${{ secrets.WEB_EXT_API_SECRET }}
64
- - name : Submit to Google
65
- if : matrix.command == 'Chrome'
52
+ - uses : actions/download-artifact@v4
53
+ - run : npx chrome-webstore-upload-cli@3
66
54
working-directory : artifact
67
- run : npx chrome-webstore-upload-cli@2 upload --auto-publish
68
55
env :
69
56
EXTENSION_ID : ${{ secrets.EXTENSION_ID }}
70
57
CLIENT_ID : ${{ secrets.CLIENT_ID }}
0 commit comments