Skip to content

Commit

Permalink
Try to automatically upload extension to the official firefox addon s…
Browse files Browse the repository at this point in the history
…tore
  • Loading branch information
neobooru committed Aug 2, 2023
1 parent bbd361a commit 6b93a9c
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
name: Chrome Extension (Unsigned)
path: extension.zip

build_firefox:
name: "Build Firefox Extension"
build_unlisted_firefox:
name: "Build Unlisted Firefox Extension"
runs-on: ubuntu-20.04
# Doesn't really need the Chrome build, but we can reuse its cache.
needs: build_chrome
Expand Down Expand Up @@ -52,3 +52,28 @@ jobs:
with:
name: Firefox Extension (Signed)
path: web-ext-artifacts/*.xpi

build_amo_firefox:
name: "Build Firefox Extension for AMO"
runs-on: ubuntu-20.04
# Doesn't really need the Chrome build, but we can reuse its cache.
needs: build_chrome
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: ./.github/actions/setup-for-build

- name: Build
run: pnpm build
env:
SZ_GECKO_ID: 18365332-8485-4c04-9498-2843a41ab620

- name: Sign XPI and upload to AMO
run: pnpm sign:firefox
env:
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}

0 comments on commit 6b93a9c

Please sign in to comment.