chore: download signed Firefox
This commit is contained in:
parent
949c27fea9
commit
6051f08901
2 changed files with 10 additions and 5 deletions
2
.github/workflows/get-signed-ext.sh
vendored
2
.github/workflows/get-signed-ext.sh
vendored
|
@ -11,7 +11,7 @@ do
|
||||||
|
|
||||||
if [ -n "$url" ]; then
|
if [ -n "$url" ]; then
|
||||||
echo "v$VERSION available!"
|
echo "v$VERSION available!"
|
||||||
wget -nv $url
|
wget -nv $url -P ${OUT_DIR:-./}
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo "v$VERSION unavailable"
|
echo "v$VERSION unavailable"
|
||||||
|
|
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
@ -18,6 +18,7 @@ env:
|
||||||
VERSION: ${{ github.event.inputs.version }}
|
VERSION: ${{ github.event.inputs.version }}
|
||||||
NPM_TAG: ${{ github.event.inputs.npm_tag }}
|
NPM_TAG: ${{ github.event.inputs.npm_tag }}
|
||||||
REF: ${{ github.event.inputs.ref || github.sha }}
|
REF: ${{ github.event.inputs.ref || github.sha }}
|
||||||
|
ARTIFACTS_DIR: ./.artifacts
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
@ -48,7 +49,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # 0301...
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # 0301...
|
||||||
|
|
||||||
- run: mkdir -p web-ext-artifacts
|
|
||||||
- name: Publish Firefox Extension
|
- name: Publish Firefox Extension
|
||||||
id: web-ext-build
|
id: web-ext-build
|
||||||
uses: kewisch/action-web-ext@v1
|
uses: kewisch/action-web-ext@v1
|
||||||
|
@ -60,16 +60,21 @@ jobs:
|
||||||
apiKey: ${{ secrets.AMO_SIGN_KEY }}
|
apiKey: ${{ secrets.AMO_SIGN_KEY }}
|
||||||
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
|
apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
mkdir -p $ARTIFACTS_DIR
|
||||||
|
cp dist/main.js $ARTIFACTS_DIR/musescore-downloader.user.js
|
||||||
|
cp dist/ext.zip $ARTIFACTS_DIR/musescore-downloader.webextension.zip
|
||||||
- run: sh ./.github/workflows/get-signed-ext.sh
|
- run: sh ./.github/workflows/get-signed-ext.sh
|
||||||
env:
|
env:
|
||||||
EXT_ID: musescore-downloader
|
EXT_ID: musescore-downloader
|
||||||
- run: |
|
OUT_DIR: ${{ env.ARTIFACTS_DIR }}
|
||||||
cp dist/main.js musescore-downloader.user.js && \
|
|
||||||
cp dist/ext.zip musescore-downloader.webextension.zip
|
|
||||||
- name: Github Release
|
- name: Github Release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
cd $ARTIFACTS_DIR
|
||||||
|
|
||||||
files=$(ls musescore?downloader*)
|
files=$(ls musescore?downloader*)
|
||||||
assets=()
|
assets=()
|
||||||
for f in $files; do [ -f "$f" ] && assets+=(-a "$f"); done
|
for f in $files; do [ -f "$f" ] && assets+=(-a "$f"); done
|
||||||
|
|
Loading…
Reference in a new issue