Fix version name tag in CI
This commit is contained in:
parent
e176b74b53
commit
3df6210735
|
@ -1,10 +1,9 @@
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
cargo build --release
|
cargo build --release
|
||||||
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
|
|
||||||
cd target/release/
|
cd target/release/
|
||||||
tar czf "espanso-linux-$VER.tar.gz" espanso
|
tar czf "espanso-linux.tar.gz" espanso
|
||||||
cd ../..
|
cd ../..
|
||||||
cp target/release/espanso-linux-*.gz .
|
cp target/release/espanso-linux.gz .
|
||||||
ls -la
|
ls -la
|
||||||
displayName: "Cargo build and packaging"
|
displayName: "Cargo build and packaging"
|
|
@ -9,7 +9,7 @@ parameters:
|
||||||
steps:
|
steps:
|
||||||
- script: |
|
- script: |
|
||||||
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
|
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
|
- task: GitHubRelease@0
|
||||||
displayName: Create GitHub release
|
displayName: Create GitHub release
|
||||||
|
|
Loading…
Reference in New Issue
Block a user