@@ -13,13 +13,13 @@ jobs:
1313 include :
1414 - name : linux
1515 os : ubuntu-latest
16- path : target/release/ lsp-ws-proxy
16+ bin_file : lsp-ws-proxy
1717 - name : macos
1818 os : macos-latest
19- path : target/release/ lsp-ws-proxy
19+ bin_file : lsp-ws-proxy
2020 - name : windows
2121 os : windows-latest
22- path : target/release/ lsp-ws-proxy.exe
22+ bin_file : lsp-ws-proxy.exe
2323
2424 steps :
2525 - uses : actions/checkout@v2
@@ -41,22 +41,22 @@ jobs:
4141 command : build
4242 args : --release --locked
4343
44- - run : tar czf ${{ matrix.path }}.tar.gz ${{ matrix.path }}
44+ - run : cd target/release && tar czf ${{ matrix.bin_file }}.tar.gz ${{ matrix.bin_file }}
4545
4646 - name : Upload Binary
4747 uses : actions/upload-release-asset@v1
4848 env :
4949 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5050 with :
5151 upload_url : ${{ github.event.release.upload_url }}
52- asset_path : ${{ matrix.path }}.tar.gz
52+ asset_path : target/release/ ${{ matrix.bin_file }}.tar.gz
5353 asset_name : lsp-ws-proxy_${{ matrix.name }}.tar.gz
5454 asset_content_type : application/octet-stream
5555
5656 upload_musl :
5757 runs-on : ubuntu-latest
5858 env :
59- BINARY_PATH : target/ x86_64-unknown-linux-musl/release/lsp-ws-proxy
59+ TARGET : x86_64-unknown-linux-musl
6060 steps :
6161 - uses : actions/checkout@v2
6262 - uses : actions/cache@v2
@@ -72,22 +72,22 @@ jobs:
7272 override : true
7373 toolchain : stable
7474 profile : minimal
75- target : x86_64-unknown-linux-musl
75+ target : ${{ env.TARGET }}
7676
7777 - uses : actions-rs/cargo@v1
7878 with :
7979 use-cross : true
8080 command : build
8181 args : --release --locked --target x86_64-unknown-linux-musl
8282
83- - run : tar czf ${{ env.BINARY_PATH }}.tar.gz ${{ env.BINARY_PATH }}
83+ - run : cd target/ ${{ env.TARGET }}/release && tar czf lsp-ws-proxy .tar.gz lsp-ws-proxy
8484
8585 - name : Upload Binary
8686 uses : actions/upload-release-asset@v1
8787 env :
8888 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8989 with :
9090 upload_url : ${{ github.event.release.upload_url }}
91- asset_path : ${{ env.BINARY_PATH }}.tar.gz
91+ asset_path : taget/ ${{ env.TARGET }}/release/lsp-ws-proxy .tar.gz
9292 asset_name : lsp-ws-proxy_linux-musl.tar.gz
9393 asset_content_type : application/octet-stream
0 commit comments