espanso/ci/deploy.yml

26 lines
772 B
YAML
Raw Normal View History

2019-09-21 10:07:27 +00:00
parameters:
github:
isPreRelease: false
repositoryName: '$(Build.Repository.Name)'
2019-09-21 10:20:46 +00:00
gitHubConnection: "MyGithubConnection"
2019-09-21 10:07:27 +00:00
dependsOn: []
displayName: "Release to github"
2019-09-21 10:09:41 +00:00
steps:
- script: |
VER=$(cat Cargo.toml| grep version -m 1 | awk -F '"' '{ print $2 }')
echo '##vso[task.setvariable variable=vers]'$VER
2019-09-21 10:07:27 +00:00
- task: GitHubRelease@0
displayName: Create GitHub release
inputs:
gitHubConnection: ${{ parameters.github.gitHubConnection }}
tagSource: manual
title: '$(vers)'
tag: '$(vers)'
2019-09-21 10:07:27 +00:00
assetUploadMode: replace
action: edit
assets: 'espanso-*'
addChangeLog: false
2019-09-21 10:07:27 +00:00
repositoryName: ${{ parameters.github.repositoryName }}
isPreRelease: ${{ parameters.github.isPreRelease }}