6
6
- " v*.*.*"
7
7
workflow_dispatch :
8
8
9
- env :
10
- CARGO_TERM_COLOR : always
11
-
12
9
jobs :
13
10
build :
14
11
name : build on ${{ matrix.os }}
@@ -17,24 +14,26 @@ jobs:
17
14
matrix :
18
15
include :
19
16
- os : windows-latest
20
- file : target/release/hi-rust-release .exe
17
+ file : target/release/${{ github.event.repository.name }} .exe
21
18
- os : ubuntu-latest
22
- file : target/release/hi-rust-release
19
+ file : target/release/${{ github.event.repository.name }}
23
20
runs-on : ${{ matrix.os }}
24
- outputs :
25
- artifact-url : ${{ steps.artifact-upload-step.outputs.artifact-url }}
21
+ # outputs:
22
+ # artifact-url: ${{ steps.artifact-upload-step.outputs.artifact-url }}
26
23
steps :
27
24
- uses : actions/checkout@master
28
25
- name : Build
26
+ env :
27
+ CARGO_TERM_COLOR : always
29
28
run : cargo build --release --verbose
30
29
- name : Upload
31
30
uses : actions/upload-artifact@master
32
31
id : artifact-upload-step
33
32
with :
34
33
name : Binary-${{ matrix.os }}
35
34
path : ${{ matrix.file }}
36
- - name : Output artifact URL
37
- run : echo 'Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}'
35
+ # - name: Output artifact URL
36
+ # run: echo 'Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}'
38
37
39
38
release :
40
39
name : downloading Binary-${{ matrix.os }}
@@ -46,19 +45,19 @@ jobs:
46
45
- os : ubuntu-latest
47
46
runs-on : ubuntu-latest
48
47
needs : build
48
+ permissions :
49
+ contents : write
49
50
steps :
50
- - run : cat /etc/os-release
51
51
- uses : actions/download-artifact@master
52
52
with :
53
53
name : Binary-${{ matrix.os }}
54
- - run : ls -lih
54
+ - name : List files
55
+ run : |
56
+ ls -lih
55
57
- name : GH Release for ${{ matrix.os }}
56
58
57
59
if : startsWith(github.ref, 'refs/tags/')
58
60
with :
59
61
token : ${{ secrets.GITHUB_TOKEN }}
60
62
files : |
61
- hi-rust-release*
62
-
63
- permissions :
64
- contents : write
63
+ ${{ github.event.repository.name }}*
0 commit comments