mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Merge pull request #79 from YACReader/feature/github_releases_from_azure_pipelines
Try to do a release to github
This commit is contained in:
commit
e4dec39eaa
@ -132,5 +132,36 @@ jobs:
|
|||||||
options: -H "X-Bintray-Publish:1"
|
options: -H "X-Bintray-Publish:1"
|
||||||
remotePath: ''
|
remotePath: ''
|
||||||
url: https://api.bintray.com/content/luisangelsm/YACReader/DevBuilds/$(Build.BuildNumber)/
|
url: https://api.bintray.com/content/luisangelsm/YACReader/DevBuilds/$(Build.BuildNumber)/
|
||||||
|
- job: Release
|
||||||
|
dependsOn:
|
||||||
|
- Linux
|
||||||
|
- MacOS
|
||||||
|
- Windows_x86
|
||||||
|
- Windows_x64
|
||||||
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
||||||
|
variables:
|
||||||
|
- group: github-releases
|
||||||
|
pool:
|
||||||
|
vmImage: 'ubuntu-16.04'
|
||||||
|
steps:
|
||||||
|
- task: DownloadPipelineArtifact@2
|
||||||
|
inputs:
|
||||||
|
buildType: 'current'
|
||||||
|
targetPath: $(Build.ArtifactStagingDirectory)
|
||||||
|
- script: |
|
||||||
|
find $(Build.ArtifactStagingDirectory) -name '*.*' -exec cp {} $(Build.ArtifactStagingDirectory) \;
|
||||||
|
displayName: 'flatten artifact staging directory'
|
||||||
|
- script: |
|
||||||
|
VERSION="$(cat common/yacreader_global.h | grep '#define VERSION "' | tr -d '#define VERSION' | tr -d '"' )"
|
||||||
|
echo "##vso[task.setvariable variable=VERSION]$VERSION"
|
||||||
|
displayName: 'Version'
|
||||||
|
- task: GitHubRelease@0
|
||||||
|
inputs:
|
||||||
|
gitHubConnection: yacreader-releases
|
||||||
|
title: $(VERSION)
|
||||||
|
tagSource: 'manual'
|
||||||
|
tag: $(VERSION)
|
||||||
|
addChangeLog: false
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user