diff --git a/.github/workflows/release-wasm.yml b/.github/workflows/release-wasm.yml index 2259aba2..e07d3ee0 100644 --- a/.github/workflows/release-wasm.yml +++ b/.github/workflows/release-wasm.yml @@ -30,6 +30,11 @@ jobs: working-directory: . run: | make build-jsonnet + - name: Build Edgechains + working-directory: . + run: | + make build-edgechains + # start of the release job - name: Create out directory working-directory: . @@ -52,6 +57,19 @@ jobs: working-directory: . run: | cp jsonnet.zip bin/ + + - name: Zip edgechains + uses: thedoctor0/zip-release@0.7.5 + with: + type: 'zip' + filename: 'edgechains.zip' + exclusions: '*.git* /*node_modules/* .editorconfig' + path: 'JS/edgechains/arakoodev' + + - name: copy edgechains + working-directory: . + run: | + cp edgechains.zip bin/ - name: Copy Javy bin working-directory: . diff --git a/Makefile b/Makefile index 9bbf96db..3c8b7c0f 100644 --- a/Makefile +++ b/Makefile @@ -47,4 +47,7 @@ clean-example: @rm -r JS/wasm/examples/ec-wasmjs-hono/node_modules/ JS/wasm/examples/ec-wasmjs-hono/bin/ build-jsonnet: - @cd JS/jsonnet && ./build.sh \ No newline at end of file + @cd JS/jsonnet && ./build.sh + +build-edgechains: + @cp README.md JS/edgechains/arakoodev && cd JS/edgechains/arakoodev && npm install && npm run build && rm -rf src/ \ No newline at end of file