File tree 2 files changed +24
-15
lines changed
2 files changed +24
-15
lines changed Original file line number Diff line number Diff line change 1
- name : release binaries
2
-
1
+ name : Build/Release binaries
3
2
on :
4
- release :
5
- types : [published]
3
+ pull_request :
4
+ branches :
5
+ - " *"
6
+ push :
7
+ branches :
8
+ - " *"
6
9
7
10
env :
8
11
CARGO_TERM_COLOR : always
9
12
10
13
jobs :
11
14
build :
12
-
13
15
runs-on : ubuntu-latest
14
-
15
16
steps :
16
17
- uses : actions/checkout@v2
17
18
- name : Toolchain installation
18
19
run : sh -c "rustup toolchain install nightly && rustup target add wasm32-unknown-unknown && cargo install wasm-pack"
19
20
20
21
- name : Build binaries
21
22
run : sh release-binaries.sh
22
-
23
- - uses : actions/upload-artifact@v2
24
- with :
25
- name : wasm-filters.tar.gz
26
- path : ./wasm-filters.tar.gz
27
-
28
-
23
+
24
+ # the below step will take place only when there is a release
25
+ - name : Upload wasm binaries to the latest made release
26
+ if : github.event_name == 'release'
27
+ run : |
28
+ set -x
29
+ assets=()
30
+ for asset in ./wasm-filters/*.wasm; do
31
+ assets+=("-a" "$asset")
32
+ done
33
+ tag_name="${GITHUB_REF##*/}"
34
+ hub release edit "${assets[@]}" -m "" "stable-$tag_name"
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+
38
+
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ for d in */ ; do
28
28
fi
29
29
cd ..
30
30
done
31
- cd wasm-filters
32
- tar -czvf wasm-filters.tar.gz ./wasm-filters
31
+
33
32
34
33
You can’t perform that action at this time.
0 commit comments