File tree Expand file tree Collapse file tree 1 file changed +30
-5
lines changed
Expand file tree Collapse file tree 1 file changed +30
-5
lines changed Original file line number Diff line number Diff line change 99 CARGO_TERM_COLOR : always
1010
1111jobs :
12- attach_binaries :
12+ build_binaries :
1313 strategy :
1414 matrix :
1515 include :
@@ -43,14 +43,39 @@ jobs:
4343 toolchain : stable
4444 target : ${{ matrix.target }}
4545 override : true
46- - name : Build binary
46+ - name : Build Binary
4747 uses : actions-rs/cargo@v1
4848 with :
4949 use-cross : true
5050 command : build
5151 args : --release --locked --target=${{ matrix.target }}
52- - name : Upload binary
52+ - name : Rename Binary
53+ run : mv target/${{ matrix.target }}/release/webptz${{ matrix.ext }} target/${{ matrix.target }}/release/webptz_${{ matrix.suffix }}${{ matrix.ext }}
54+ - name : Upload Binary
5355 uses : actions/upload-artifact@v4
5456 with :
55- name : binary-${{ matrix.target }}
56- path : target/${{ matrix.target }}/release/webptz${{ matrix.ext }}
57+ name : binary_${{ matrix.target }}
58+ path : target/${{ matrix.target }}/release/webptz_${{ matrix.suffix }}${{ matrix.ext }}
59+ draft_release :
60+ runs-on : ubuntu-latest
61+ needs : [build_binaries]
62+ steps :
63+ - name : Download Binaries
64+ uses : actions/download-artifact@v4
65+ with :
66+ merge-multiple : true
67+ - name : List Directory Files
68+ run : ls -la
69+ shell : bash
70+ - name : Create Release
71+ uses : softprops/action-gh-release@v2
72+ with :
73+ name : WebPTZ ${{ github.ref_name }}
74+ draft : true
75+ generate_release_notes : true
76+ files : |
77+ webptz_win-x64.exe
78+ webptz_linux-x64
79+ webptz_linux-arm
80+ webptz_linux-arm64
81+ webptz_macos-x64
You can’t perform that action at this time.
0 commit comments