diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2437a778..6be09d64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -62,6 +62,23 @@ jobs: with: args: zip -qq -r ./builds/FirefoxExtensionBeta.zip ./dist + # Create Firefox Signed Beta version + - name: Create Firefox Signed Beta artifacts + run: npm run web-sign + env: + WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }} + WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }} + - name: Install rename + run: sudo apt-get install rename + - name: Install signed file + run: cd ./web-ext-artifacts + run: rename 's/.*/FirefoxSignedInstaller.xpi/' * + run: cd .. + - uses: actions/upload-artifact@v1 + with: + name: FirefoxExtensionSigned.xpi + path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi + # Upload each release asset - name: Upload to release uses: Shopify/upload-to-release@master @@ -70,6 +87,13 @@ jobs: name: ChromeExtension.zip path: ./builds/ChromeExtension.zip repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to release + uses: Shopify/upload-to-release@master + with: + args: builds/ChromeExtensionBeta.zip + name: ChromeExtensionBeta.zip + path: ./builds/ChromeExtensionBeta.zip + repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Upload to release uses: Shopify/upload-to-release@master with: @@ -77,4 +101,11 @@ jobs: name: FirefoxExtension.zip path: ./builds/FirefoxExtension.zip repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Upload to release + uses: Shopify/upload-to-release@master + with: + args: web-ext-artifacts/FirefoxSignedInstaller.xpi + name: FirefoxSignedInstaller.xpi + path: ./web-ext-artifacts/FirefoxSignedInstaller.xpi + repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index c778277c..bccb8af8 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ }, "scripts": { "web-run": "npm run web-run:chrome", + "web-sign": "web-ext sign -s dist", "web-run:firefox": "cd dist && web-ext run --start-url https://addons.mozilla.org/firefox/addon/ublock-origin/", "web-run:chrome": "cd dist && web-ext run --start-url https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm -t chromium", "build": "npm run build:chrome",