66 - " v*.*.*"
77 workflow_dispatch :
88
9- env :
10- CARGO_TERM_COLOR : always
11-
129jobs :
1310 build :
1411 name : build on ${{ matrix.os }}
@@ -17,24 +14,26 @@ jobs:
1714 matrix :
1815 include :
1916 - os : windows-latest
20- file : target/release/hi-rust-release .exe
17+ file : target/release/${{ github.event.repository.name }} .exe
2118 - os : ubuntu-latest
22- file : target/release/hi-rust-release
19+ file : target/release/${{ github.event.repository.name }}
2320 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 }}
2623 steps :
2724 - uses : actions/checkout@master
2825 - name : Build
26+ env :
27+ CARGO_TERM_COLOR : always
2928 run : cargo build --release --verbose
3029 - name : Upload
3130 uses : actions/upload-artifact@master
3231 id : artifact-upload-step
3332 with :
3433 name : Binary-${{ matrix.os }}
3534 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 }}'
3837
3938 release :
4039 name : downloading Binary-${{ matrix.os }}
@@ -46,19 +45,19 @@ jobs:
4645 - os : ubuntu-latest
4746 runs-on : ubuntu-latest
4847 needs : build
48+ permissions :
49+ contents : write
4950 steps :
50- - run : cat /etc/os-release
5151 - uses : actions/download-artifact@master
5252 with :
5353 name : Binary-${{ matrix.os }}
54- - run : ls -lih
54+ - name : List files
55+ run : |
56+ ls -lih
5557 - name : GH Release for ${{ matrix.os }}
5658 uses : softprops/action-gh-release@v2.0.2
5759 if : startsWith(github.ref, 'refs/tags/')
5860 with :
5961 token : ${{ secrets.GITHUB_TOKEN }}
6062 files : |
61- hi-rust-release*
62-
63- permissions :
64- contents : write
63+ ${{ github.event.repository.name }}*
0 commit comments