From 452545f63a837f8e256aac66dd8650faa86dd5aa Mon Sep 17 00:00:00 2001 From: 1xstj <106580853+1xstj@users.noreply.github.com> Date: Thu, 18 Apr 2024 15:58:34 +0530 Subject: [PATCH] [fix] upload compressed wasm as release artifact (#613) * release v0.6.7 * srtool actions * srtool actions * try empty string * try if else * try if else * fix wasm build * cleanup * update srtool action * update srtool action * fix testnet naming * fix trigger --- .github/workflows/publish-srtool-wasm.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-srtool-wasm.yml b/.github/workflows/publish-srtool-wasm.yml index 4f27ec4cc..dabff6580 100644 --- a/.github/workflows/publish-srtool-wasm.yml +++ b/.github/workflows/publish-srtool-wasm.yml @@ -39,10 +39,21 @@ jobs: echo "Runtime location: ${{ steps.srtool_build.outputs.wasm }}" - name: Upload ${{ matrix.chain }} wasm to release + if: matrix.chain == 'mainnet' + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: runtime/mainnet/target/srtool/release/wbuild/tangle-runtime/tangle_runtime.compact.compressed.wasm + asset_name: tangle-${{ matrix.chain }}-srtool-compact.compressed.wasm + tag: ${{ github.ref }} + overwrite: true + + - name: Upload ${{ matrix.chain }} wasm to release + if: matrix.chain == 'testnet' uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ steps.srtool_build.outputs.wasm }} - asset_name: tangle-${{ matrix.features }}-srtool-wasm + file: runtime/testnet/target/srtool/release/wbuild/tangle-testnet-runtime/tangle_runtime.compact.compressed.wasm + asset_name: tangle-${{ matrix.chain }}-srtool-compact.compressed.wasm tag: ${{ github.ref }} overwrite: true \ No newline at end of file