File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,14 +104,15 @@ jobs:
104104 sed 's/version = "0.0.0"/version = "'${{ needs.version.outputs.version }}'"/g' Cargo.toml > Cargo.toml.tmp
105105 mv Cargo.toml.tmp Cargo.toml
106106 cargo deb --target=x86_64-unknown-linux-gnu
107- export DEB_BIN=$(printf \"${{ needs.version.outputs.version }}\" | sed 's/-/~/g')
107+ export DEB_F=$(printf "${{ needs.version.outputs.version }}" | sed 's/-/~/g')
108+ mv ./target/x86_64-unknown-linux-gnu/debian/complate_${DEB_F}_amd64.deb ./target/x86_64-unknown-linux-gnu/debian/complate_${{ needs.version.outputs.version }}_amd64.deb
108109 - name : Upload Release Asset
109110 id : upload-release-asset
110111 uses : actions/upload-release-asset@v1
111112 env :
112113 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
113114 with :
114115 upload_url : ${{ needs.version.outputs.upload_url }}
115- asset_path : ./target/x86_64-unknown-linux-gnu/debian/complate_$DEB_BIN_amd64 .deb
116+ asset_path : ./target/x86_64-unknown-linux-gnu/debian/complate_${{ needs.version.outputs.version }}_amd64 .deb
116117 asset_name : complate-amd64.deb
117118 asset_content_type : application/octet-stream
You can’t perform that action at this time.
0 commit comments