chore: add signed firefox web ext ci
This commit is contained in:
9
.github/workflows/clipper.release.prod.yml
vendored
9
.github/workflows/clipper.release.prod.yml
vendored
@@ -39,18 +39,19 @@ jobs:
|
|||||||
- name: Build for Firefox (MV2)
|
- name: Build for Firefox (MV2)
|
||||||
env:
|
env:
|
||||||
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
PACKAGE_VERSION: ${{ env.PACKAGE_VERSION }}
|
||||||
|
WEB_EXT_API_KEY: ${{ secrets.AMO_WEB_EXT_API_KEY }}
|
||||||
|
WEB_EXT_API_SECRET: ${{ secrets.AMO_WEB_EXT_API_SECRET }}
|
||||||
run: |
|
run: |
|
||||||
EXT_TARGET=firefox yarn build-mv2
|
EXT_TARGET=firefox yarn build-mv2
|
||||||
cd dist
|
web-ext sign --source-dir dist --api-key $WEB_EXT_API_KEY --api-secret $WEB_EXT_API_SECRET --channel=listed
|
||||||
zip -r standard-notes-clipper-$PACKAGE_VERSION.firefox.unsigned.zip *
|
mv web-ext-artifacts/*.xpi standard-notes-clipper-$PACKAGE_VERSION.firefox.xpi
|
||||||
mv standard-notes-clipper-$PACKAGE_VERSION.firefox.unsigned.zip ../
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3.0.0
|
uses: actions/upload-artifact@v3.0.0
|
||||||
with:
|
with:
|
||||||
name: assets
|
name: assets
|
||||||
path: |
|
path: |
|
||||||
packages/clipper/*.chromium.zip
|
packages/clipper/*.chromium.zip
|
||||||
packages/clipper/*.firefox.unsigned.zip
|
packages/clipper/*.firefox.xpi
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
defaults:
|
defaults:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@standardnotes/clipper",
|
"name": "@standardnotes/clipper",
|
||||||
"description": "Web clipper browser extension for Standard Notes",
|
"description": "Web clipper browser extension for Standard Notes.",
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user