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