Skip to content

Commit 730a7e8

Browse files
author
Alexander Weber
committed
build fix
1 parent e012850 commit 730a7e8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)