File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release WebAssembly Module
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ env :
9
+ CARGO_TERM_COLOR : always
10
+
11
+ jobs :
12
+ release :
13
+ name : Build release
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Install Rust
17
+ uses : actions-rs/toolchain@v1
18
+ with :
19
+ profile : minimal
20
+ toolchain : stable
21
+ override : true
22
+ - name : Install wasm-pack
23
+ run : curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
24
+ - name : Check out repository
25
+ uses : actions/checkout@v3
26
+
27
+ # Only release if the tests pass
28
+ - name : Run tests
29
+ run : make test
30
+
31
+ - name : Build
32
+ run : make build
33
+
34
+ - name : Release
35
+ uses : softprops/action-gh-release@v1
36
+ with :
37
+ files : pkg/*
38
+ draft : true
39
+ fail_on_unmatched_files : true
40
+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments