File tree 1 file changed +39
-36
lines changed
1 file changed +39
-36
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
- workflow_dispatch :
3
- release :
4
- types : [created]
2
+ workflow_dispatch :
3
+ release :
4
+ types : [created]
5
5
6
- permissions :
7
- write-all
6
+ permissions : write-all
8
7
9
8
jobs :
10
- release :
11
- name : Release ${{ matrix.target }}
12
- runs-on : ubuntu-latest
13
- strategy :
14
- fail-fast : false
15
- steps :
16
- - uses : actions/checkout@v3
17
- - name : Install latest rust toolchain
18
- uses : actions-rs/toolchain@v1
19
- with :
20
- toolchain : stable
21
- default : true
22
- override : true
23
- - name : Cache cargo
24
- uses : actions/cache@v3
25
- with :
26
- path : |
27
- ~/.cargo/bin/
28
- ~/.cargo/registry/index/
29
- ~/.cargo/registry/cache/
30
- ~/.cargo/git/db/
31
- target/
32
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
33
- - name : Build
34
- run : cargo build --all --release && strip target/release/mufbot-dc
35
- - name : Release
36
- uses : actions/create-release@v1
37
- env :
38
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
- with :
40
- files : target/release/mufbot-dc
9
+ release :
10
+ name : release ${{ matrix.target }}
11
+ runs-on : ubuntu-latest
12
+ strategy :
13
+ fail-fast : false
14
+ steps :
15
+ - uses : actions/checkout@master
16
+
17
+ - name : Install latest rust toolchain
18
+ uses : actions-rs/toolchain@v1
19
+ with :
20
+ toolchain : stable
21
+ default : true
22
+ override : true
23
+
24
+ - name : Cache cargo
25
+ uses : actions/cache@v4
26
+ with :
27
+ path : |
28
+ ~/.cargo/bin/
29
+ ~/.cargo/registry/index/
30
+ ~/.cargo/registry/cache/
31
+ ~/.cargo/git/db/
32
+ target/
33
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
34
+
35
+ - name : Build
36
+ run : cargo build --all --release && strip target/release/mufbot-dc
37
+
38
+ - name : Release
39
+ uses : softprops/action-gh-release@v1
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ with :
43
+ files : target/release/mufbot-dc
You can’t perform that action at this time.
0 commit comments