ci: add release workflow for pre-built WASM binary #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |