From d7cd6d72f6d6fe528426f7d5ddf15a1847b3dc01 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 28 Jul 2021 19:43:11 -0400 Subject: [PATCH] Build/release a nodejs package in tagged releases Related issue: - https://github.com/cliqz-oss/adblocker/pull/2075 --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95121d645..2c61352db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -41,6 +41,7 @@ jobs: tools/make-chromium.sh ${{ steps.release_info.outputs.VERSION }} tools/make-firefox.sh ${{ steps.release_info.outputs.VERSION }} tools/make-thunderbird.sh ${{ steps.release_info.outputs.VERSION }} + tools/make-nodejs.sh ${{ steps.release_info.outputs.VERSION }} - name: Upload Chromium package uses: actions/upload-release-asset@v1 env: @@ -68,3 +69,12 @@ jobs: asset_path: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.thunderbird.xpi asset_name: uBlock0_${{ steps.release_info.outputs.VERSION }}.thunderbird.xpi asset_content_type: application/octet-stream + - name: Upload NodeJS package + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: dist/build/uBlock0_${{ steps.release_info.outputs.VERSION }}.nodejs.zip + asset_name: uBlock0_${{ steps.release_info.outputs.VERSION }}.nodejs.zip + asset_content_type: application/octet-stream