Fix version name tag in CI

This commit is contained in:
Federico Terzi 2019-09-21 12:54:19 +02:00
parent e176b74b53
commit 3df6210735
2 changed files with 3 additions and 4 deletions

View File

@ -1,10 +1,9 @@
steps:
- script: |
cargo build --release
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
cd target/release/
tar czf "espanso-linux-$VER.tar.gz" espanso
tar czf "espanso-linux.tar.gz" espanso
cd ../..
cp target/release/espanso-linux-*.gz .
cp target/release/espanso-linux.gz .
ls -la
displayName: "Cargo build and packaging"

View File

@ -9,7 +9,7 @@ parameters:
steps:
- script: |
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
echo '##vso[task.setvariable variable=vers]'$VER
echo '##vso[task.setvariable variable=vers]'v$VER
- task: GitHubRelease@0
displayName: Create GitHub release