From e176b74b53f5c4f155dadc0e7e20102a93eac6c1 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 21 Sep 2019 12:42:23 +0200 Subject: [PATCH] Add version to deploy on Azure pipeline --- ci/deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ci/deploy.yml b/ci/deploy.yml index d099f67..9584960 100644 --- a/ci/deploy.yml +++ b/ci/deploy.yml @@ -7,15 +7,20 @@ parameters: displayName: "Release to github" steps: + - script: | + VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }') + echo '##vso[task.setvariable variable=vers]'$VER + - task: GitHubRelease@0 displayName: Create GitHub release inputs: gitHubConnection: ${{ parameters.github.gitHubConnection }} tagSource: manual - title: '$(build.my_tag) - $(build.date)' - tag: '$(build.my_tag)' + title: '$(vers)' + tag: '$(vers)' assetUploadMode: replace action: edit - assets: 'espanso-*.gz' + assets: 'espanso-*' + addChangeLog: false repositoryName: ${{ parameters.github.repositoryName }} isPreRelease: ${{ parameters.github.isPreRelease }} \ No newline at end of file