Add version to deploy on Azure pipeline
This commit is contained in:
parent
8fd7ba42ed
commit
e176b74b53
|
@ -7,15 +7,20 @@ parameters:
|
||||||
displayName: "Release to github"
|
displayName: "Release to github"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- script: |
|
||||||
|
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
|
||||||
|
echo '##vso[task.setvariable variable=vers]'$VER
|
||||||
|
|
||||||
- task: GitHubRelease@0
|
- task: GitHubRelease@0
|
||||||
displayName: Create GitHub release
|
displayName: Create GitHub release
|
||||||
inputs:
|
inputs:
|
||||||
gitHubConnection: ${{ parameters.github.gitHubConnection }}
|
gitHubConnection: ${{ parameters.github.gitHubConnection }}
|
||||||
tagSource: manual
|
tagSource: manual
|
||||||
title: '$(build.my_tag) - $(build.date)'
|
title: '$(vers)'
|
||||||
tag: '$(build.my_tag)'
|
tag: '$(vers)'
|
||||||
assetUploadMode: replace
|
assetUploadMode: replace
|
||||||
action: edit
|
action: edit
|
||||||
assets: 'espanso-*.gz'
|
assets: 'espanso-*'
|
||||||
|
addChangeLog: false
|
||||||
repositoryName: ${{ parameters.github.repositoryName }}
|
repositoryName: ${{ parameters.github.repositoryName }}
|
||||||
isPreRelease: ${{ parameters.github.isPreRelease }}
|
isPreRelease: ${{ parameters.github.isPreRelease }}
|
Loading…
Reference in New Issue
Block a user