Skip to content

Commit f97f8da

Browse files
committed
Update release script
1 parent fb610f2 commit f97f8da

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
Version:
1414
outputs:
1515
created: ${{ env.DAILY_VERSION_CREATED }}
16+
permissions:
17+
contents: write
1618
runs-on: ubuntu-latest
1719
steps:
1820
- uses: actions/checkout@v4
@@ -30,7 +32,7 @@ jobs:
3032
run: npx dot-json@1 "$DIRECTORY/manifest.json" version "$DAILY_VERSION"
3133
- name: Ready for "submit" jobs
3234
if: env.DAILY_VERSION_CREATED
33-
uses: actions/upload-artifact@v3
35+
uses: actions/upload-artifact@v4
3436
with:
3537
path: ${{ env.DIRECTORY }}
3638
- name: Create release
@@ -49,8 +51,8 @@ jobs:
4951
environment: Chrome
5052
runs-on: ubuntu-latest
5153
steps:
52-
- uses: actions/download-artifact@v3
53-
- run: npx chrome-webstore-upload-cli@2 upload --auto-publish
54+
- uses: actions/download-artifact@v4
55+
- run: npx chrome-webstore-upload-cli@3
5456
working-directory: artifact
5557
env:
5658
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
@@ -64,8 +66,12 @@ jobs:
6466
environment: Firefox
6567
runs-on: ubuntu-latest
6668
steps:
67-
- uses: actions/download-artifact@v3
68-
- run: npx web-ext@7 sign --use-submission-api --channel listed
69+
- uses: actions/checkout@v4
70+
- uses: actions/download-artifact@v4
71+
- run: >-
72+
git archive --output source.zip HEAD ":!test" ":!.github" && unzip -l
73+
source.zip
74+
- run: npx web-ext@8 sign --channel listed --upload-source-code ../source.zip
6975
working-directory: artifact
7076
env:
7177
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}

0 commit comments

Comments
 (0)