-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 876 Bytes
/
release.yaml
File metadata and controls
38 lines (31 loc) · 876 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/')