Skip to content

Commit

Permalink
fix(.github/workflows): build with web-ext-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollorion committed Aug 11, 2022
1 parent 0127bc4 commit 8ac5f91
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Build Zip
if: startsWith(github.ref, 'refs/tags/')
run: |
npm install --global web-ext
npm install --global web-ext-submit
# Prepare Files
cp LICENSE ./dist/
Expand All @@ -69,8 +69,10 @@ jobs:
# Build xpi for firefox
rm manifest.json
mv manifest-firefox.json manifest.json
web-ext sign --channel=listed --api-key=${{secrets.WEB_EXT_API_KEY }} --api-secret=${{ secrets.WEB_EXT_API_SECRET }}
zip -r -FS ../firefox-extension.xpi *
web-ext-submit --api-key=${{secrets.WEB_EXT_API_KEY }} --api-secret=${{ secrets.WEB_EXT_API_SECRET }}
file=$(ls ./web-ext-artifacts/)
mv ./web-ext-artifacts/$file ../firefox-extension.xpi
- uses: "marvinpinto/action-automatic-releases@latest"
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 8ac5f91

Please sign in to comment.