File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 build_firefox :
3131 name : build firefox addon
3232 runs-on : ubuntu-latest
33+ env :
34+ AMO_JWT_ISSUER : ${{ secrets.AMO_JWT_ISSUER }}
35+ AMO_JWT_SECRET : ${{ secrets.AMO_JWT_SECRET }}
3336 steps :
3437 - name : git checkout
3538 uses : actions/checkout@v4
@@ -47,20 +50,20 @@ jobs:
4750 - name : install web-ext
4851 run : npm i -g web-ext
4952 - name : sign with AMO (if secrets provided)
50- if : ${{ secrets .AMO_JWT_ISSUER && secrets .AMO_JWT_SECRET }}
53+ if : ${{ env .AMO_JWT_ISSUER != '' && env .AMO_JWT_SECRET != '' }}
5154 env :
5255 WEB_EXT_API_KEY : ${{ secrets.AMO_JWT_ISSUER }}
5356 WEB_EXT_API_SECRET : ${{ secrets.AMO_JWT_SECRET }}
5457 run : |
5558 web-ext sign \
56- --api-key "$WEB_EXT_API_KEY " \
57- --api-secret "$WEB_EXT_API_SECRET " \
59+ --api-key "$AMO_JWT_ISSUER " \
60+ --api-secret "$AMO_JWT_SECRET " \
5861 --channel listed
5962 --id sanitize-amazon@devloberto \
6063 --source-dir . \
6164 --artifacts-dir ./web-ext-artifacts
6265 - name : upload signed crx artifact
63- if : ${{ secrets .AMO_JWT_ISSUER && secrets .AMO_JWT_SECRET }}
66+ if : ${{ env .AMO_JWT_ISSUER != '' && env .AMO_JWT_SECRET != '' }}
6467 uses : actions/upload-artifact@v4
6568 with :
6669 name : ${{ env.ARTIFACT_NAME }}_firefox
You can’t perform that action at this time.
0 commit comments