File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
---
2
+ name : Release
2
3
on :
3
4
release :
4
- types :
5
- - created
5
+ types : published
6
+
6
7
jobs :
7
8
cancel-previous-runs :
8
9
name : Cancel Previous Runs
13
14
with :
14
15
access_token : ${{ github.token }}
15
16
release :
16
- name : release ${{ matrix.target }}
17
+ name : Release ${{ matrix.os }}
17
18
strategy :
18
19
fail-fast : false
19
20
matrix :
@@ -26,10 +27,13 @@ jobs:
26
27
- uses : actions/checkout@v2
27
28
with :
28
29
ref : ${{ github.ref }}
29
- - name : Install Cargo
30
- run : curl https://sh.rustup.rs -sSf | sh
31
- - name : Build
32
- run : cargo build --release
30
+ - uses : actions-rs/toolchain@v1
31
+ with :
32
+ toolchain : stable
33
+ - uses : actions-rs/cargo@v1
34
+ with :
35
+ command : build
36
+ args : --release
33
37
- name : Upload binaries to release
34
38
uses : svenstaro/upload-release-action@v2
35
39
with :
You can’t perform that action at this time.
0 commit comments