Skip to content

ci: add release workflow for pre-built WASM binary #1

ci: add release workflow for pre-built WASM binary

ci: add release workflow for pre-built WASM binary #1

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-wasip2
- name: Install cargo-component
run: cargo install cargo-component
- name: Build WASM component
run: cargo component build --release --target wasm32-wasip2
- name: Rename artifact
run: |
cp target/wasm32-wasip2/release/peerclaw_ironclaw_plugin.wasm \
peerclaw_ironclaw_plugin.wasm
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: peerclaw_ironclaw_plugin.wasm
generate_release_notes: true