Skip to content

Commit

Permalink
[fix] upload compressed wasm as release artifact (#613)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
1xstj authored Apr 18, 2024
1 parent 65ad634 commit 452545f
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/publish-srtool-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 452545f

Please sign in to comment.