chore: github action
sign firefox extension
This commit is contained in:
parent
ae5b8e7083
commit
fd5fd1ce1e
1 changed files with 12 additions and 0 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -48,13 +48,25 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # 0301...
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # 0301...
|
||||||
|
|
||||||
|
- name: Sign Firefox Extension
|
||||||
|
id: web_ext_sign
|
||||||
|
uses: kewisch/action-web-ext@v1
|
||||||
|
with:
|
||||||
|
cmd: sign
|
||||||
|
source: dist/ext.zip
|
||||||
|
channel: unlisted
|
||||||
|
apiKey: ${{ secrets.AMO_SIGN_KEY }}
|
||||||
|
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
|
||||||
|
|
||||||
- name: Github Release
|
- name: Github Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
SIGNED_WEB_EXT: ${{ steps.web-ext-build.outputs.target }}
|
||||||
run: |
|
run: |
|
||||||
hub release create \
|
hub release create \
|
||||||
-a "dist/main.js#userscript.js" \
|
-a "dist/main.js#userscript.js" \
|
||||||
-a "dist/ext.zip#webextension.zip" \
|
-a "dist/ext.zip#webextension.zip" \
|
||||||
|
-a "$SIGNED_WEB_EXT" \
|
||||||
-m v$VERSION \
|
-m v$VERSION \
|
||||||
-t $REF \
|
-t $REF \
|
||||||
v$VERSION
|
v$VERSION
|
||||||
|
|
Loading…
Reference in a new issue