espanso/ci/deploy.yml

26 lines
773 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 }')
2019-09-21 10:54:19 +00:00
echo '##vso[task.setvariable variable=vers]'v$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 }}