From 98c10cebb44a64e2540db761457fcf2b419ef04c Mon Sep 17 00:00:00 2001 From: Lorenzo Bernardi Date: Fri, 25 Feb 2022 14:20:45 +0100 Subject: [PATCH] Updated build workflow Signed-off-by: Lorenzo Bernardi --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f111e95..159281a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,12 +56,13 @@ jobs: # ${{ runner.os }}- - name: Bootstrap Kibana run: cd ./kibana/plugins/${{fromJson(steps.set_var.outputs.kibanaJson).id}} && yarn kbn bootstrap - - name: Fix redux-toolkit - run: sed -i 's/^const /^let /g' ./kibana/plugins/${{fromJson(steps.set_var.outputs.kibanaJson).id}}/node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.development.js + # - name: Fix redux-toolkit + # run: sed -i 's/^const /^let /g' ./kibana/plugins/${{fromJson(steps.set_var.outputs.kibanaJson).id}}/node_modules/@reduxjs/toolkit/dist/redux-toolkit.cjs.development.js # - name: Run optimizer manually (https://github.com/elastic/kibana/issues/70426) # run: cd ./kibana/plugins/redelk && node ../../scripts/build_kibana_platform_plugins --verbose --no-examples --dist --filter redelk - name: Build RedELK plugin - run: cd ./kibana/plugins/${{fromJson(steps.set_var.outputs.kibanaJson).id}} && yarn build --skip-archive && mkdir build/kibana/${{fromJson(steps.set_var.outputs.kibanaJson).id}}/public && cp -R public/assets/ build/kibana/${{fromJson(steps.set_var.outputs.kibanaJson).id}}/public && cd build && zip redelk-${{fromJson(steps.set_var.outputs.kibanaJson).version}}.zip kibana -r + run: cd ./kibana/plugins/${{fromJson(steps.set_var.outputs.kibanaJson).id}} && yarn build + # --skip-archive && mkdir build/kibana/${{fromJson(steps.set_var.outputs.kibanaJson).id}}/public && cp -R public/assets/ build/kibana/${{fromJson(steps.set_var.outputs.kibanaJson).id}}/public && cd build && zip redelk-${{fromJson(steps.set_var.outputs.kibanaJson).version}}.zip kibana -r - name: Archive production artifacts uses: actions/upload-artifact@v2 with: