Try automatically publishing to the firefox add-ons store once more

pull/55/head
neobooru 2023-08-14 20:42:09 +02:00
parent 59fd8be0d3
commit 56395d4944
2 changed files with 23 additions and 24 deletions

View File

@ -47,7 +47,7 @@ jobs:
SZ_GECKO_ID: 13372607-2257-4360-8f51-5ce66fa73350 SZ_GECKO_ID: 13372607-2257-4360-8f51-5ce66fa73350
- name: Sign XPI - name: Sign XPI
run: pnpm sign:firefox run: pnpm sign:firefox --channel unlisted
env: env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
@ -57,28 +57,27 @@ jobs:
name: Firefox Extension (Signed) name: Firefox Extension (Signed)
path: web-ext-artifacts/*.xpi path: web-ext-artifacts/*.xpi
# build_amo_firefox: build_amo_firefox:
# name: "Build Firefox Extension for AMO" name: "Build Firefox Extension for AMO"
# runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
# # Doesn't really need the Chrome build, but we can reuse its cache. # Doesn't really need the Chrome build, but we can reuse its cache.
# needs: build_chrome needs: build_chrome
# if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
# steps: steps:
# - name: Checkout - name: Checkout
# uses: actions/checkout@v2 uses: actions/checkout@v2
# with: with:
# fetch-depth: 0 fetch-depth: 0
# - uses: ./.github/actions/setup-for-build - uses: ./.github/actions/setup-for-build
# - name: Build - name: Build
# run: pnpm build run: pnpm build
# env: env:
# SZ_GECKO_ID: 18365332-8485-4c04-9498-2843a41ab620 SZ_GECKO_ID: 18365332-8485-4c04-9498-2843a41ab620
# TODO: Add --channel=listed - name: Sign XPI and upload to AMO
# - name: Sign XPI and upload to AMO run: pnpm sign:firefox --channel listed
# run: pnpm sign:firefox env:
# env: WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
# WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
# WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}

View File

@ -20,7 +20,7 @@
"pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest", "pack:xpi": "cross-env WEB_EXT_ARTIFACTS_DIR=./ web-ext build --source-dir ./extension --filename extension.xpi --overwrite-dest",
"start:chromium": "web-ext run --source-dir ./extension --target=chromium", "start:chromium": "web-ext run --source-dir ./extension --target=chromium",
"start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop", "start:firefox": "web-ext run --source-dir ./extension --target=firefox-desktop",
"sign:firefox": "web-ext sign --use-submission-api --source-dir ./extension --channel unlisted", "sign:firefox": "web-ext sign --use-submission-api --source-dir ./extension",
"clear": "rimraf extension/dist extension/manifest.json extension.*", "clear": "rimraf extension/dist extension/manifest.json extension.*",
"lint": "eslint .", "lint": "eslint .",
"test": "vitest test" "test": "vitest test"