chore: github action

This commit is contained in:
Xmader 2020-10-29 21:20:48 -04:00
parent 29d9f41cf3
commit 83f30e7093
1 changed files with 5 additions and 2 deletions

View File

@ -58,14 +58,17 @@ jobs:
apiKey: ${{ secrets.AMO_SIGN_KEY }} apiKey: ${{ secrets.AMO_SIGN_KEY }}
apiSecret: ${{ secrets.AMO_SIGN_SECRET }} apiSecret: ${{ secrets.AMO_SIGN_SECRET }}
- run: |
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 }}
SIGNED_WEB_EXT: ${{ steps.web-ext-build.outputs.target }} SIGNED_WEB_EXT: ${{ steps.web-ext-build.outputs.target }}
run: | run: |
hub release create \ hub release create \
-a "dist/main.js#userscript.js" \ -a "musescore-downloader.user.js" \
-a "dist/ext.zip#webextension.zip" \ -a "musescore-downloader.webextension.zip" \
-a "$SIGNED_WEB_EXT" \ -a "$SIGNED_WEB_EXT" \
-m v$VERSION \ -m v$VERSION \
-t $REF \ -t $REF \