Update README.md #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Firefox Add-ons | |
env: | |
DIRECTORY: ./build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Submit: | |
name: Publish to Firefox Add-ons | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Build | |
run: | | |
npm ci | |
npm run pub-ci-firefox | |
- name: Install Mozillas web-ext | |
run: | | |
npm install --global web-ext | |
pwd | |
- name: Publish | |
run: | | |
cd $DIRECTORY && web-ext sign --channel=listed --api-key=${{ secrets.FIREFOX_API_KEY }} --api-secret=${{ secrets.FIREFOX_API_SECRET }} || test $? -eq 1 && echo "error code 1 => The add-on has been submitted for review, but can not automatically be approved." |