Skip to content

Commit 8ac5f91

Browse files
fix(.github/workflows): build with web-ext-submit
1 parent 0127bc4 commit 8ac5f91

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Build Zip
4949
if: startsWith(github.ref, 'refs/tags/')
5050
run: |
51-
npm install --global web-ext
51+
npm install --global web-ext-submit
5252
5353
# Prepare Files
5454
cp LICENSE ./dist/
@@ -69,8 +69,10 @@ jobs:
6969
# Build xpi for firefox
7070
rm manifest.json
7171
mv manifest-firefox.json manifest.json
72-
web-ext sign --channel=listed --api-key=${{secrets.WEB_EXT_API_KEY }} --api-secret=${{ secrets.WEB_EXT_API_SECRET }}
73-
zip -r -FS ../firefox-extension.xpi *
72+
web-ext-submit --api-key=${{secrets.WEB_EXT_API_KEY }} --api-secret=${{ secrets.WEB_EXT_API_SECRET }}
73+
file=$(ls ./web-ext-artifacts/)
74+
mv ./web-ext-artifacts/$file ../firefox-extension.xpi
75+
7476
7577
- uses: "marvinpinto/action-automatic-releases@latest"
7678
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)