Workflow file for this run
This file contains 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
on: | |
workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
release: | |
name: Build and Release Plug-ins | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: wasm32-unknown-unknown | |
- name: Add wasm32-wasi target | |
run: rustup target add wasm32-wasi | |
- name: Setup `wasm-tools` | |
uses: bytecodealliance/actions/wasm-tools/setup@v1 | |
- name: Build | |
run: make build | |
- name: List directory contents | |
run: | | |
ls -la plugins | |
- name: Upload Artifact to Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
if-no-files-found: error | |
files: | | |
plugins/*.wasm | |
if: startsWith(github.ref, 'refs/tags/') |