Skip to content

Commit

Permalink
fix wasm filename again
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Nov 22, 2024
1 parent 1f5c502 commit 599bea7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 599bea7

Please sign in to comment.