Fix version name tag in CI
This commit is contained in:
parent
e176b74b53
commit
3df6210735
|
@ -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"
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user