From 599bea71f8142a82171b32cb21e1ee6ecbe33565 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Fri, 22 Nov 2024 09:36:03 +0100 Subject: [PATCH] fix wasm filename again --- .github/workflows/ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67871d0..59fe033 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -433,14 +433,18 @@ jobs: runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime("${{ matrix.runtime }}")')" echo "Found version: >$runtime_ver<" echo "runtime_ver={$runtime_ver}" >> $GITHUB_OUTPUT - + - name: Set wasm filename + run: echo "WASM_FILE=${MATRIX_RUNTIME//-/_}_runtime.compact.compressed.wasm" >> $GITHUB_ENV + env: + MATRIX_RUNTIME: ${{ matrix.runtime }} + GITHUB_SHA: ${{ github.sha }} - name: Upload compressed ${{ matrix.runtime }} wasm uses: shogo82148/actions-upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.release.outputs.asset_upload_url }} - asset_path: "${{ matrix.runtime }}-runtime-${{ github.sha }}/${{ matrix.runtime.replace('-', '_') }}_runtime.compact.compressed.wasm" + asset_path: "${{ matrix.runtime }}-runtime-${{ github.sha }}/${{ env.WASM_FILE }}" asset_name: ${{ matrix.runtime }}_runtime-v${{ steps.get-runtime-ver.outputs.runtime_ver }}.compact.compressed.wasm asset_content_type: application/wasm