Skip to content

Commit

Permalink
Updated build workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Bernardi <[email protected]>
  • Loading branch information
fastlorenzo committed Feb 25, 2022
1 parent c8080ad commit 98c10ce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 98c10ce

Please sign in to comment.